]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi-target: Don't over-allocate sendtargets text resp buffer
authorSagi Grimberg <sagig@mellanox.com>
Mon, 26 Jan 2015 10:49:06 +0000 (12:49 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 4 Feb 2015 18:55:33 +0000 (10:55 -0800)
commit6ef94d78597fdf3682787e328b1bc1e7400c426b
treecc73d0604d454692bb2ace3a8d8b1ed010cc96b1
parent59e8fd9684d4846b9d250b1568a1a00a518613f8
iscsi-target: Don't over-allocate sendtargets text resp buffer

No reason to allocate a buffer of size bigger than initiator
MaxRecvDataSegmentLength. Moreover, we need to respect initiator
MRDSL and not send a larger payload.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c