diff options
author | Chris Mason <chris.mason@oracle.com> | 2010-05-11 18:09:45 -0400 |
---|---|---|
committer | Andy Grover <andy.grover@oracle.com> | 2010-09-08 21:15:08 -0400 |
commit | 38a4e5e61344490f18241333d7b1b368a3a38748 (patch) | |
tree | 60268171e32aff9938334806d0debd5c35b3dc56 /net/rds/rds.h | |
parent | e4c52c98e04937ea87b0979a81354d0040d284f9 (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/rds.h')
-rw-r--r-- | net/rds/rds.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/rds.h b/net/rds/rds.h index c22bd7b49460..241a0859d16e 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h | |||
@@ -452,7 +452,7 @@ struct rds_sock { | |||
452 | * bound_addr used for both incoming and outgoing, no INADDR_ANY | 452 | * bound_addr used for both incoming and outgoing, no INADDR_ANY |
453 | * support. | 453 | * support. |
454 | */ | 454 | */ |
455 | struct rb_node rs_bound_node; | 455 | struct hlist_node rs_bound_node; |
456 | __be32 rs_bound_addr; | 456 | __be32 rs_bound_addr; |
457 | __be32 rs_conn_addr; | 457 | __be32 rs_conn_addr; |
458 | __be16 rs_bound_port; | 458 | __be16 rs_bound_port; |