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)
committerRoland Dreier <roland@purestorage.com>
Fri, 13 Feb 2015 19:27:31 +0000 (11:27 -0800)
commitc6c95ef4cec680f7a10aa425a9970744b35b6489
tree080f2256dcfa5cdc1a107989a808863449e08bc8
parentbfa76d49576599a4b9f9b7a71f23d73d6dcff735
IB/iser: Use correct dma direction when unmapping SGs

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>
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_memory.c