]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
IB/srp: Use FMRs to map gather/scatter lists
authorRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:29 +0000 (20:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:29 +0000 (20:37 -0700)
commitf5358a172f79e3f995919224401b25637f4324f6
tree52980f6f7707af3fca77958d04e88b9cee3c1a2a
parenta26026c1221c3e78e6e9f156994c41fb74e99022
IB/srp: Use FMRs to map gather/scatter lists

Create an SRP FMR pool on HCAs that support FMRs, and use FMRs to map
gather/scatter lists that have more than one entry into a single
memory region that appears virtually contiguous to the SRP target
(which is the RDMA initiator).

This patch bails out on FMR mapping for SCSI commands where the
gather/scatter list cannot be mapped into a single FMR because there
are sub-page-sized entries in middle of the list.  An unaligned
start or end of the list is OK.

Based on a patch by Vu Pham <vuhuong@mellanox.com>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h