[PATCH for 4.9 21/39] nvme-rdma: handle cpu unplug when re-establishing the controller

2017-09-17 Thread Levin, Alexander (Sasha Levin)
From: Sagi Grimberg [ Upstream commit c248c64387fac5a6b31b343d9acb78f478e8619c ] 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

[PATCH for 4.9 21/39] nvme-rdma: handle cpu unplug when re-establishing the controller

2017-09-17 Thread Levin, Alexander (Sasha Levin)
From: Sagi Grimberg [ Upstream commit c248c64387fac5a6b31b343d9acb78f478e8619c ] 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