IB/iser: DMA unmap unaligned for RDMA data before touching it
authorErez Zilber <erezz@voltaire.com>
Wed, 27 Sep 2006 13:43:06 +0000 (16:43 +0300)
committerRoland Dreier <rolandd@cisco.com>
Thu, 28 Sep 2006 17:53:18 +0000 (10:53 -0700)
commit74a2078061409e027ccb51a28cf6174c31ab8f99
tree281557a02ff3c5fe33e0d2dbf52fe77b6eaab474
parent87e8df7a273c7c1acb864c90b5253609c44375a6
IB/iser: DMA unmap unaligned for RDMA data before touching it

iSER uses the DMA mapping api to map the page holding the
SCSI command data to the HCA DMA address space. When the
command data is not aligned for RDMA, the data is copied
to/from an allocated buffer which in turn is used for
executing this command. The pages associated with the
command must be unmapped before being touched.

Signed-off-by: Erez Zilber <erezz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_memory.c