]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-pci: cap queue creation to used queues
authorKeith Busch <kbusch@kernel.org>
Tue, 10 Feb 2026 19:00:12 +0000 (11:00 -0800)
committerKeith Busch <kbusch@kernel.org>
Fri, 13 Feb 2026 14:47:41 +0000 (06:47 -0800)
commit4735b510a00fb2d4ac9e8d21a8c9552cb281f585
tree2e17fa5a1af9627ec2840873ac81c73782f7f64d
parent166e31d7dbf6aa44829b98aa446bda5c9580f12a
nvme-pci: cap queue creation to used queues

If the user reduces the special queue count at runtime and resets the
controller, we need to reduce the number of queues and interrupts
requested accordingly rather than start with the pre-allocated queue
count.

Tested-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c