]> git.baikalelectronics.ru Git - kernel.git/commit
nvme/pci: Fix read queue count
authorKeith Busch <kbusch@kernel.org>
Thu, 5 Dec 2019 23:11:17 +0000 (08:11 +0900)
committerKeith Busch <kbusch@kernel.org>
Fri, 6 Dec 2019 17:52:47 +0000 (02:52 +0900)
commitdfa126e0779166320c20054e14cf128469c37add
treeeb93ff6c8336762b8ebac44703bb7a6d5f165d01
parent1b5d924914cdb74197073a75fb1cb5f4378823f8
nvme/pci: Fix read queue count

If nvme.write_queues equals the number of CPUs, the driver had decreased
the number of interrupts available such that there could only be one read
queue even if the controller could support more. Remove the interrupt
count reduction in this case. The driver wouldn't request more IRQs than
it wants queues anyway.

Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c