]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target/rd: T10-Dif: RAM disk is allocating more space than required.
authorQuinn Tran <quinn.tran@qlogic.com>
Fri, 28 Mar 2014 23:05:27 +0000 (19:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:29 +0000 (07:59 -0700)
commitd57b778d6769de07e6ba703ff3f2d0f07f01c94a
treee75979c16ff12f138be405f29075030c171b2f78
parentcc39e3c4930e678a5af686315db98f8e9165bd29
target/rd: T10-Dif: RAM disk is allocating more space than required.

commit 9d2e59f2a778328a41771fe9a0098dadbc4314ba upstream.

Ram disk is allocating 8x more space than required for diff data.
For large RAM disk test, there is small potential for memory
starvation.

(Use block_size when calculating total_sg_needed - sagi + nab)

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Quinn Tran <quinn.tran@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_rd.c