alistair23-linux/drivers/scsi/libfc
Yi Zou 4347fa6687 [SCSI] libfc: Fix wrong scsi return status under FC_DATA_UNDRUN
This bug is exposed when there is a link flap in LLD. Particularly, when it
happens right after a SCSI write command is sent out, no FCP_DATA is sent,
causing fsp->status_code to be set as FC_DATA_UNDRUN in fc_fcp_complete_locked
even no SCSI status is received. Consequently, fc_io_compl treats this as DID_OK.
This results in SCSI returning successful to the initial I/O request even
there is no DATA actually sent. Particularly, if you run an I/O tool w/ data
verification on, the read back for verification is gonna fail.

This is fixed here by checking when FC_DATA_UNDRUN happens, SCSI status is
received w/ FC_SRB_RCV_STATUS set in fsp->state.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2009-12-04 12:00:27 -06:00
..
fc_disc.c [SCSI] libfc: send GPN_ID in reaction to single-port RSCNs. 2009-09-10 12:08:03 -05:00
fc_elsct.c [SCSI] libfc: send GPN_ID in reaction to single-port RSCNs. 2009-09-10 12:08:03 -05:00
fc_exch.c [SCSI] libfc, fcoe: Don't EXPORT_SYMBOLS unnecessarily 2009-12-04 12:00:24 -06:00
fc_fcp.c [SCSI] libfc: Fix wrong scsi return status under FC_DATA_UNDRUN 2009-12-04 12:00:27 -06:00
fc_frame.c [SCSI] libfc, fcoe: Don't EXPORT_SYMBOLS unnecessarily 2009-12-04 12:00:24 -06:00
fc_lport.c [SCSI] libfc: fix handling of incoming Discover Address (ADISC) requests 2009-09-10 12:08:02 -05:00
fc_rport.c [SCSI] libfc, fcoe: Don't EXPORT_SYMBOLS unnecessarily 2009-12-04 12:00:24 -06:00
Makefile [SCSI] libfc: A modular Fibre Channel library 2008-12-29 11:24:33 -06:00