]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Allocate queues only for online cpus
authorKeith Busch <keith.busch@intel.com>
Fri, 13 May 2016 18:38:09 +0000 (12:38 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 17 May 2016 23:14:21 +0000 (17:14 -0600)
commit7c145e34203ad6457c14c0103b012fba87073882
tree94ebf9f41b80b80f06faeacb234ec8673b471e29
parentf009a5d7e1730222e748ecc1eb18d6232673a95e
NVMe: Allocate queues only for online cpus

The driver previously requested allocating queues for the total possible
number of CPUs so that blk-mq could rebalance these if CPUs were added
after initialization. The number of hardware contexts can now be changed
at runtime, so we only need to allocate the number of online queues
since we can add more later.

Suggested-by: Jeff Lien <jeff.lien@hgst.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c