]> Pileus Git - ~andy/linux/commit
IB/iser: DMA unmap TX bufs used for iSCSI/iSER headers
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 3 Nov 2011 22:21:27 +0000 (00:21 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 4 Nov 2011 16:32:44 +0000 (09:32 -0700)
commit52439540ea30396982b69662dd21aede6b336288
tree2604bc377ec689ce1a23fa45e1a317196bd96a82
parent2c4ce609347f2a45792c8d9ebb5af11217766cb6
IB/iser: DMA unmap TX bufs used for iSCSI/iSER headers

The current driver never does DMA unmapping on these buffers.  Fix that
by adding DMA unmapping to the task cleanup callback, and DMA mapping to
the task init function (drop the headers_initialized micro-optimization).

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/infiniband/ulp/iser/iscsi_iser.h