[SCSI] iscsi_tcp: fix handling of data buffer padding
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 30 May 2007 17:57:20 +0000 (12:57 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 2 Jun 2007 19:35:10 +0000 (15:35 -0400)
commitdbdb016d92603619d972082167c10b8c74e605cc
treed100bfe35f17f5fa8bc5be3e0f1a8feb9b0434b4
parent1548271ece9e9312fd5feb41fd58773b56a71d39
[SCSI] iscsi_tcp: fix handling of data buffer padding

If we got the padding, data and header in different skbs,
we were not handling the padding correctly because we attributed it
to the data's skb. This resulted in the initiator reading from
pad bytes + skb offset instead of the correct offset.

If you could not connect with the open solaris target, this
will fix the lock up problem you were hitting.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/iscsi_tcp.c
drivers/scsi/iscsi_tcp.h