Do not ignore block offsets.

PR:	kern/160943
Submitted by:	Craig Boston <cb severious net>
Reviewed by:	Danny Braniss <danny cs huji ac il>
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2011-10-10 13:26:53 +00:00
parent 3d2443cc84
commit 8be736b2b3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226208

View File

@ -84,6 +84,7 @@ iscsi_r2t(isc_session_t *sp, pduq_t *opq, pduq_t *pq)
caddr_t bp = csio->data_ptr;
bo = ntohl(r2t->bo);
bp += MIN(bo, edtl - ddtl);
bleft = ddtl;
if(sp->opt.maxXmitDataSegmentLength > 0) // danny's RFC