diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2017-03-13 13:27:51 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-04 09:44:43 -0600 |
commit | 6ecda70ea9c1bf37d2abdcf52dfe06d023276173 (patch) | |
tree | 75d1987654f3ad9bbd3eaf91d8f947568cb2aa77 /drivers/nvme/target/nvmet.h | |
parent | d476983ea078b7a101481967a3bb5ab6760cf759 (diff) | |
download | linux-6ecda70ea9c1bf37d2abdcf52dfe06d023276173.tar.gz linux-6ecda70ea9c1bf37d2abdcf52dfe06d023276173.tar.bz2 linux-6ecda70ea9c1bf37d2abdcf52dfe06d023276173.zip |
nvme-loop: handle cpu unplug when re-establishing the controller
If a cpu unplug event has occured, we need to take the minimum
of the provided nr_io_queues and the number of online cpus,
otherwise we won't be able to connect them as blk-mq mapping
won't dispatch to those queues.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
0 files changed, 0 insertions, 0 deletions