]> git.baikalelectronics.ru Git - kernel.git/commit
tcmu: Skip Data-Out blocks before gathering Data-In buffer for BIDI case
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Fri, 31 Mar 2017 02:35:25 +0000 (10:35 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 2 Apr 2017 23:18:51 +0000 (16:18 -0700)
commit491620267ec3fa947b29114613f113b2914bf0e4
tree54960252c514b65717105a4f600cc898f6784a02
parent1c83d4b575be007ba762a80c83100c3fbb593846
tcmu: Skip Data-Out blocks before gathering Data-In buffer for BIDI case

For the bidirectional case, the Data-Out buffer blocks will always at
the head of the tcmu_cmd's bitmap, and before gathering the Data-In
buffer, first of all it should skip the Data-Out ones, or the device
supporting BIDI commands won't work.

Fixed: cd82decc6332 ("target/user: Introduce data_bitmap, replace
data_length/data_head/data_tail")
Reported-by: Ilias Tsitsimpis <iliastsi@arrikto.com>
Tested-by: Ilias Tsitsimpis <iliastsi@arrikto.com>
Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Cc: stable@vger.kernel.org # 4.6+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c