[SCSI] qla2xxx: Return DID_NO_CONNECT when FC device is lost.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Fri, 28 Jan 2011 23:17:55 +0000 (15:17 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 15 Feb 2011 17:12:17 +0000 (11:12 -0600)
commit1621dbbdb90f42b7bd14aea1c44ee49b558d1b1a
tree944f423f98ec344051ccf23fb6f5961ab9e38349
parentd2b2147678a8be0144d64ec4feb759e7560eb9af
[SCSI] qla2xxx: Return DID_NO_CONNECT when FC device is lost.

If the target device gets lost, this fix is needed, as it causes
negative unintended responses on basic I/O tests. If the target device
gets lost, the upstream qla2xxx driver returns
SCSI_MLQUEUE_TARGET_BUSY which causes an immediate retry without drop
in the number of allowed retries. This semantic change, as a result of
removing FC_DEVICE_LOST check is reasonable, as it only extends a
short transitional period, until the transport is called to notify
that the rport as lost (fc_remote_port_delete()). Once transport
notification is done, fc_remote_port_chkready() check will take over.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_os.c