[SCSI] qla2xxx: Check return value of fc_block_scsi_eh()
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Wed, 23 Feb 2011 23:27:17 +0000 (15:27 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 25 Feb 2011 18:00:57 +0000 (13:00 -0500)
commit4e98d3b8ac81696d38eb7b54e8566e763f7aa97a
tree839f2de3e8500abf3298dd931db1539bb55b1e79
parente46ef004f8938eb7bc80f350d8efed9bf57f04b3
[SCSI] qla2xxx: Check return value of fc_block_scsi_eh()

The fc_block_scsi_eh() might return with status FAST_IO_FAIL
indicating I/O has been terminated due to fast_io_fail timeout.
In this case the rport is still blocked, so any error recovery
will be failing on this port. Hence we need to check if the
return value from fc_block_scsi_eh() is something other than 0,
in which case it should just return with that status.

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