]> 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)
commitf3d3e05644e1236d546664270b389f2d5547dd79
tree2604bc377ec689ce1a23fa45e1a317196bd96a82
parent857ccac90de397f5519c197823746a7c312f26e4
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