aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib_rdma.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2010-05-11 18:09:45 -0400
committerAndy Grover <andy.grover@oracle.com>2010-09-08 21:15:08 -0400
commit38a4e5e61344490f18241333d7b1b368a3a38748 (patch)
tree60268171e32aff9938334806d0debd5c35b3dc56 /net/rds/ib_rdma.c
parente4c52c98e04937ea87b0979a81354d0040d284f9 (diff)
rds: Use RCU for the bind lookup searches
The RDS bind lookups are somewhat expensive in terms of CPU time and locking overhead. This commit changes them into a faster RCU based hash tree instead of the rbtrees they were using before. On large NUMA systems it is a significant improvement. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'net/rds/ib_rdma.c')
-rw-r--r--net/rds/ib_rdma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
index cc341cd70c87..4ba01b9ffd44 100644
--- a/net/rds/ib_rdma.c
+++ b/net/rds/ib_rdma.c
@@ -303,6 +303,8 @@ static struct rds_ib_mr *rds_ib_alloc_fmr(struct rds_ib_device *rds_ibdev)
303 goto out_no_cigar; 303 goto out_no_cigar;
304 } 304 }
305 305
306 memset(ibmr, 0, sizeof(*ibmr));
307
306 ibmr->fmr = ib_alloc_fmr(rds_ibdev->pd, 308 ibmr->fmr = ib_alloc_fmr(rds_ibdev->pd,
307 (IB_ACCESS_LOCAL_WRITE | 309 (IB_ACCESS_LOCAL_WRITE |
308 IB_ACCESS_REMOTE_READ | 310 IB_ACCESS_REMOTE_READ |