]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/iser: Use correct dma direction when unmapping SGs
authorRoi Dayan <roid@mellanox.com>
Sun, 28 Dec 2014 12:26:11 +0000 (14:26 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 24 Mar 2015 01:02:44 +0000 (21:02 -0400)
commit78a1437c7fd46d0081c691fdd3a16288a487fb5b
treef0163bbef52ac8616767d265376b1696810ddfb5
parentcaa2a1adfedfa16ce25f4230d814f425b25b9630
IB/iser: Use correct dma direction when unmapping SGs

commit c6c95ef4cec680f7a10aa425a9970744b35b6489 upstream.

We always unmap SGs with the same direction instead of unmapping
with the direction the mapping was done, fix that.

Fixes: 9a8b08fad2ef ("IB/iser: Generalize iser_unmap_task_data and [...]")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_memory.c