]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerSagi Grimberg <sagi@grimberg.me>
Tue, 21 Mar 2017 16:38:41 +0000 (18:38 +0200)
commitc248c64387fac5a6b31b343d9acb78f478e8619c
tree1fdb4de39c93fffa45c4c6458092a99857a87ca7
parentb25634e2a051bef4b2524b11adddfbfa6448f6cd
nvme-rdma: 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>
drivers/nvme/host/rdma.c