diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2015-08-10 17:06:57 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 18:12:37 -0400 |
commit | 7e85c91970125cb16399c7d1cfedc943266eee49 (patch) | |
tree | e686a18daead1531b75132e8b60f6063805bd14a /drivers/infiniband | |
parent | 186fbc6689a368364b7c9eb9d42d6f84b3079f65 (diff) |
IB/srp: Use multiple registrations for large memory regions
Instead of using the global rkey for large memory regions, use
multiple registrations. See also the while (dma_len) loop further
down in srp_map_sg_entry().
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 6ed976d8aa30..03ae72e338c0 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -1393,16 +1393,6 @@ static int srp_map_sg_entry(struct srp_map_state *state, return 0; } - if (dma_len > dev->mr_max_size) { - ret = srp_finish_mapping(state, ch); - if (ret) - return ret; - - srp_map_desc(state, dma_addr, dma_len, target->rkey); - srp_map_update_start(state, NULL, 0, 0); - return 0; - } - /* * If this is the first sg that will be mapped via FMR or via FR, save * our position. We need to know the first unmapped entry, its index, |