summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/fabrics.c
diff options
context:
space:
mode:
authorDaniel Wagner <dwagner@suse.de>2022-08-29 11:28:41 +0200
committerChristoph Hellwig <hch@lst.de>2022-09-19 17:55:21 +0200
commit1c467e259599864ec925d5b85066a0960320fb3c (patch)
tree12d9440ae66662a6a82091cad0a528329fd744a0 /drivers/nvme/host/fabrics.c
parent09035f86496d8dea7a05a07f6dcb8083c0a3d885 (diff)
nvme-rdma: handle number of queue changes
On reconnect, the number of queues might have changed. In the case where we have more queues available than previously we try to access queues which are not initialized yet. The other case where we have less queues than previously, the connection attempt will fail because the target doesn't support the old number of queues and we end up in a reconnect loop. Thus, only start queues which are currently present in the tagset limited by the number of available queues. Then we update the tagset and we can start any new queue. Signed-off-by: Daniel Wagner <dwagner@suse.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/fabrics.c')
0 files changed, 0 insertions, 0 deletions