]> git.baikalelectronics.ru Git - 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)
commit1b5d924914cdb74197073a75fb1cb5f4378823f8
treec835b462039608025e1170ea0c14bc39cd726bbf
parentb2e22ae58489980b8197bed6d4f0e11f1f4be05b
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