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)
committerJens Axboe <axboe@fb.com>
Tue, 4 Apr 2017 15:48:23 +0000 (09:48 -0600)
commitdc2ad16ab2c1351832b862f938e6e12a517e3c12
tree7bb04b0863f86a6426c6a4429727b5a890406abd
parent8d61413db604e456a3f67765752b12af3307cd9b
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>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/rdma.c