]> 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)
commit21ae3ed174b4866189392c89f2d6e6f4554d4b54
tree44c45de7d4d04cfc2af37889866a9171124e44d0
parentfabb87d8c4e1ceb912812e2240c16cb257b7c9e1
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: 18831cdc5392 (" 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