summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/nvmet.h
diff options
context:
space:
mode:
authorNiklas Schnelle <schnelle@linux.ibm.com>2020-11-12 09:23:02 +0100
committerChristoph Hellwig <hch@lst.de>2020-12-01 20:36:36 +0100
commite3aef0950a30ecbf475be52509ca178907410709 (patch)
tree00ea68cdbfaf1076f72e98e35c7a18edf36eca46 /drivers/nvme/target/nvmet.h
parentff4e5fbad06f762b8551da56e8fd64ad14c8aa3e (diff)
downloadlinux-e3aef0950a30ecbf475be52509ca178907410709.tar.bz2
nvme-pci: don't allocate unused I/O queues
currently the NVME_QUIRK_SHARED_TAGS quirk for Apple devices is handled during the assignment of nr_io_queues in nvme_setup_io_queues(). This however means that for these devices nvme_max_io_queues() will actually not return the supported maximum which is confusing and unexpected and also means that in nvme_probe() we are allocating for I/O queues that will never be used. Fix this by moving the quirk handling into nvme_max_io_queues(). Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
0 files changed, 0 insertions, 0 deletions