Skip to content

Commit

Permalink
IB/srp: Use FMRs to map gather/scatter lists
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Dreier committed Jun 18, 2006
1 parent a26026c commit f5358a1
Show file tree
Hide file tree
Showing 2 changed files with 228 additions and 87 deletions.
Loading

0 comments on commit f5358a1

Please sign in to comment.