]> asedeno.scripts.mit.edu Git - linux.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)
commitb1064d3e337b4d0b67d641b5f771187d8f1f027d
tree44c45de7d4d04cfc2af37889866a9171124e44d0
parent39d57757467b6346bbc1a1f416e3057f681cf903
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: b65bb777ef22 (" 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