]> err.no Git - linux-2.6/commit
IB/iser: Do not use FMR for a single dma entry sg
authorErez Zilber <erezz@voltaire.com>
Mon, 11 Sep 2006 09:26:33 +0000 (12:26 +0300)
committerRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:22:52 +0000 (15:22 -0700)
commitd81110285f7f6c07a0ce8f99a5ff158a647cd649
tree7ecbae2d81a7464114a7d57e1a7d0230aaa21071
parente981f1d4b8288072ba7cf6b7141cd4aefb404383
IB/iser: Do not use FMR for a single dma entry sg

Fast Memory Registration (fmr) is used to register for rdma an sg whose
elements are not linearly sequential after dma mapping.

The IB verbs layer provides an "all dma memory MR (memory region)" which
can be used for RDMA-ing a dma linearly sequential buffer.

Change the code to use the dma mr instead of doing fmr when dma mapping
produces a single dma entry sg.

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_memory.c
drivers/infiniband/ulp/iser/iser_verbs.c