diff options
author | 2017-03-13 13:27:51 +0200 | |
---|---|---|
committer | 2017-04-04 09:44:43 -0600 | |
commit | 6ecda70ea9c1bf37d2abdcf52dfe06d023276173 (patch) | |
tree | 75d1987654f3ad9bbd3eaf91d8f947568cb2aa77 /drivers/nvme/target/nvmet.h | |
parent | nvme-loop: fix a possible use-after-free when destroying the admin queue (diff) | |
download | linux-rng-6ecda70ea9c1bf37d2abdcf52dfe06d023276173.tar.xz linux-rng-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 '')
0 files changed, 0 insertions, 0 deletions