nvme-rdma: handle cpu unplug when re-establishing the controller
authorSagi Grimberg <sagi@grimberg.me>
Thu, 9 Mar 2017 11:26:07 +0000 (13:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:10 +0000 (10:26 +0200)
commit9b6f9da9e55a41bb6ff1fbd0a3e7ebe3c33fec74
treebbbae2a3b5c74c22272050e2345746bb2544cf3d
parent67e8be27ff725764263998e6ea179a7a05517466
nvme-rdma: handle cpu unplug when re-establishing the controller

[ 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 queues.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/rdma.c