aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/rdma.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@broadcom.com>2020-10-16 14:29:28 -0700
committerChristoph Hellwig <hch@lst.de>2020-10-23 12:54:45 +0200
commitf673714a1247669bc90322dfb14a5cf553833796 (patch)
treefdd30a53e630793a9c6ecf67d1d2adc9f0e0f263 /drivers/nvme/host/rdma.c
parent88e837ed0f1fddd34a19092aaa7098d579e6c506 (diff)
nvme-fc: shorten reconnect delay if possible for FC
We've had several complaints about a 10s reconnect delay (the default) when there was an error while there is connectivity to a subsystem. The max_reconnects and reconnect_delay are set in common code prior to calling the transport to create the controller. This change checks if the default reconnect delay is being used, and if so, it adjusts it to a shorter period (2s) for the nvme-fc transport. It does so by calculating the controller loss tmo window, changing the value of the reconnect delay, and then recalculating the maximum number of reconnect attempts allowed. Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/rdma.c')
0 files changed, 0 insertions, 0 deletions

Privacy Policy