[SCSI] iscsi: Prettify resid handling and some extra checks
authorBoaz Harrosh <bharrosh@panasas.com>
Thu, 13 Dec 2007 18:43:22 +0000 (12:43 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:28:22 +0000 (18:28 -0600)
commit7207fea452cfdd2d4e2f4419e2c31f570edbade3
treed240295f67ad9286295516dabc9949d5d3739700
parentda32dd681f7a1a17073c42b375fc23cf73c92155
[SCSI] iscsi: Prettify resid handling and some extra checks

  - Check to see that OVERFLOW is not negative indicating
    a bug.
  - Unify handling of UNDERFLOW and OVERFLOW to the same
    code.
  - Also handle BIDI_OVERFLOW.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/iscsi_tcp.c
drivers/scsi/libiscsi.c