]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit083f8b3a2fe4b5f4468f33972016097f8bd4bb1d
treed100bfe35f17f5fa8bc5be3e0f1a8feb9b0434b4
parent9d7a9ca035423893c0a0d5790f2d7a3efe15811b
[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