[SCSI] iscsi_tcp: fix setting of r2t
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 13 Dec 2007 18:43:42 +0000 (12:43 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:28:52 +0000 (18:28 -0600)
commitdf93ffcd748ce41e7b716c3056ae511939bb745e
tree864d0c841d417b8bb58bb88601416feb800c620b
parent118365721768f29d74718a59895ed7bd3c10b68e
[SCSI] iscsi_tcp: fix setting of r2t

If we negotiate for X r2ts we have to use only X r2ts. We cannot
round up (we could send less though). It is ok to fail if it
is not something the driver can handle, so this patch just does
that.

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