commit | 6ecda70ea9c1bf37d2abdcf52dfe06d023276173 | [log] [tgz] |
---|---|---|
author | Sagi Grimberg <sagi@grimberg.me> | Mon Mar 13 13:27:51 2017 +0200 |
committer | Jens Axboe <axboe@fb.com> | Tue Apr 04 09:44:43 2017 -0600 |
tree | 75d1987654f3ad9bbd3eaf91d8f947568cb2aa77 | |
parent | d476983ea078b7a101481967a3bb5ab6760cf759 [diff] |
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>