[SCSI] bfa: Handle SCSI IO underrun case.
authorKrishna Gudipati <kgudipat@brocade.com>
Sat, 6 Mar 2010 03:38:27 +0000 (19:38 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 7 Mar 2010 07:42:38 +0000 (13:12 +0530)
When IO is completed with underrun and with good SCSI status, check if
the transferred bytes against scsi_cmnd->underflow, which is set to
minimum number of bytes that must be transferred for this command, if
is less than required minimum, complete the IO with DID_ERROR.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found