scsi: fnic: changing queue command to return result DID_IMM_RETRY when rport is init
authorSatish Kharat <satishkh@cisco.com>
Tue, 27 Jun 2017 00:49:06 +0000 (17:49 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 28 Jun 2017 01:40:59 +0000 (21:40 -0400)
commit4a1108d6caf7cd0f15d439bee6163ba00c7c1b33
tree99e4130165f2d46be36aa8277c3acc1da5c2ec94
parentc22fa50b2d41f3091d2ab0acf60ffdedb7ccd765
scsi: fnic: changing queue command to return result DID_IMM_RETRY when rport is init

Currently the queue command returns DID_NO_CONNECT anytime the rport is
not in RPORT_ST_READY state. Changing it to return DID_NO_CONNECT only
when the rport is in RPORT_ST_DELETE state. When the rport is in one of
the init states retruning DID_IMM_RETRY.

Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com>
Signed-off-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_scsi.c