]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: rework queue maps handling
authorSagi Grimberg <sagi@grimberg.me>
Sat, 19 Jan 2019 00:43:24 +0000 (16:43 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Jan 2019 00:16:59 +0000 (17:16 -0700)
commitf9b519e1f1e864f18c67849676dcee8b5e890e2d
tree44c45de7d4d04cfc2af37889866a9171124e44d0
parentaf090e1424ea99bc0d4f43a6a8c0369eda9890a2
nvme-rdma: rework queue maps handling

If the device supports less queues than provided (if the device has less
completion vectors), we might hit a bug due to the fact that we ignore
that in nvme_rdma_map_queues (we override the maps nr_queues with user
opts).

Instead, keep track of how many default/read/poll queues we actually
allocated (rather than asked by the user) and use that to assign our
queue mappings.

Fixes: 53352a329d98 (" nvme-rdma: support separate queue maps for read and write")
Reported-by: Saleem, Shiraz <shiraz.saleem@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/rdma.c