]> git.baikalelectronics.ru Git - kernel.git/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)
commitf74fb7ed5c95fbb412173f63dc44b875d1d6e150
tree2604bc377ec689ce1a23fa45e1a317196bd96a82
parent546dd92f26bf2ae91e2a21d27c9ff06f58ad3726
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