]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-loop: handle cpu unplug when re-establishing the controller
authorSagi Grimberg <sagi@grimberg.me>
Mon, 13 Mar 2017 11:27:51 +0000 (13:27 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Tue, 21 Mar 2017 16:38:46 +0000 (18:38 +0200)
commitea735951b4d7df88f2b945ec5a03490b09008a12
tree51abbd169efcc4deed4e4b17a613b3e887d40727
parent5f19a185d6960a439d7954002efc03b88940d958
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>
drivers/nvme/target/loop.c