nvme-fc: retry initial controller connections 3 times
authorJames Smart <jsmart2021@gmail.com>
Mon, 9 Oct 2017 23:39:22 +0000 (16:39 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 18 Oct 2017 17:30:01 +0000 (19:30 +0200)
commit17c4dc6eb7e1b2fb1ce6a52467e3be635224606e
tree9132517ada51bf3bf431b4678d25fde312cb1a2e
parent8a82dbf19129dde9e6fc9ab25a00dbc7569abe6a
nvme-fc: retry initial controller connections 3 times

Currently, if a frame is lost of command fails as part of initial
association create for a new controller, the new controller connection
request will immediately fail.

Add in an immediate 3 retry loop before giving up.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c