]> git.baikalelectronics.ru Git - kernel.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)
committerRoland Dreier <roland@purestorage.com>
Fri, 13 Feb 2015 19:27:31 +0000 (11:27 -0800)
commitd65ba4ebdd93bc8d61aa3d51fd6b6197375467e3
tree080f2256dcfa5cdc1a107989a808863449e08bc8
parente716639644c99cea0dd635682be67de26d48dbf6
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: 346bcae28c51 ("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