diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-03-27 08:54:37 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-27 21:08:37 +0400 |
commit | 6c7a762e70637a256229f9dc9ca793908e8bd01b (patch) | |
tree | ad8c61e1fa48fdc36e799be6f8f67d257ee080b1 /net/tipc/node.h | |
parent | 46651c59c483f14fd35cf7df2104feac0e54e258 (diff) | |
download | linux-6c7a762e70637a256229f9dc9ca793908e8bd01b.tar.xz |
tipc: tipc: convert node list and node hlist to RCU lists
Convert tipc_node_list list and node_htable hash list to RCU lists.
On read side, the two lists are protected with RCU read lock, and
on update side, node_list_lock is applied to them.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/node.h')
-rw-r--r-- | net/tipc/node.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h index 42038690c540..7cbb8cec1a93 100644 --- a/net/tipc/node.h +++ b/net/tipc/node.h @@ -66,6 +66,7 @@ * @link_cnt: number of links to node * @signature: node instance identifier * @bclink: broadcast-related info + * @rcu: rcu struct for tipc_node * @acked: sequence # of last outbound b'cast message acknowledged by node * @last_in: sequence # of last in-sequence b'cast message received from node * @last_sent: sequence # of last b'cast message sent by node @@ -89,6 +90,7 @@ struct tipc_node { int working_links; int block_setup; u32 signature; + struct rcu_head rcu; struct { u32 acked; u32 last_in; |