]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 23 Jun 2017 04:10:54 +0000 (21:10 -0700)
commitf8a9a313e4c7263bb2c725e8017265297b1fe8fc
tree8d2ea7f240c8baa20ac972505802c26f7ea4a9b9
parent97ee46d11ae4717b2d8473f7ba0474d4eb0ea618
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: 26418649eead ("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>
Orabug: 25395066
(cherry picked from commit a5d68ba85801a78c892a0eb8efb711e293ed314b)
Signed-off-by: Kyle Fortin <kyle.fortin@oracle.com>
Reviewed-by: Shan Hai <shan.hai@oracle.com>
drivers/target/target_core_user.c