commit | 945dd5bacc8978439af276976b5dcbbd42333dbc | [log] [tgz] |
---|---|---|
author | Sagi Grimberg <sagi@grimberg.me> | Mon Mar 13 13:27:51 2017 +0200 |
committer | Sagi Grimberg <sagi@grimberg.me> | Tue Mar 21 18:38:46 2017 +0200 |
tree | 51abbd169efcc4deed4e4b17a613b3e887d40727 | |
parent | c248c64387fac5a6b31b343d9acb78f478e8619c [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>