diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2019-01-19 01:43:24 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-01-24 01:16:59 +0100 |
commit | b1064d3e337b4d0b67d641b5f771187d8f1f027d (patch) | |
tree | 44c45de7d4d04cfc2af37889866a9171124e44d0 /drivers/nvme/target/rdma.c | |
parent | nvme-tcp: fix timeout handler (diff) | |
download | linux-b1064d3e337b4d0b67d641b5f771187d8f1f027d.tar.xz linux-b1064d3e337b4d0b67d641b5f771187d8f1f027d.zip |
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>
Diffstat (limited to 'drivers/nvme/target/rdma.c')
0 files changed, 0 insertions, 0 deletions