]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
nvme/pci Limit write queue sizes to possible cpus
authorKeith Busch <kbusch@kernel.org>
Fri, 6 Dec 2019 16:16:59 +0000 (01:16 +0900)
committerKeith Busch <kbusch@kernel.org>
Fri, 6 Dec 2019 17:52:42 +0000 (02:52 +0900)
commit17c3316734ae2e51f74078cd955ab855caea7d73
treec835b462039608025e1170ea0c14bc39cd726bbf
parent3f68baf706ec68c4120867c25bc439c845fe3e17
nvme/pci Limit write queue sizes to possible cpus

The driver can never use more queues of any type than the number of
possible CPUs, so a higher value causes the driver to allocate more
memory for IO queues than it could ever use. Limit the parameter at
module load time to the number of possible cpus.

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