From: Ying Xue Date: Thu, 27 Mar 2014 04:54:38 +0000 (+0800) Subject: tipc: use node_list_lock to protect tipc_num_nodes variable X-Git-Tag: v3.15-rc1~113^2~66^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2220646a53aa588798653232e26172ec36ab06cd;p=pandora-kernel.git tipc: use node_list_lock to protect tipc_num_nodes variable As tipc_node_list is protected by rcu read lock on read side, it's unnecessary to hold node_list_lock to protect tipc_node_list in tipc_node_get_links(). Instead, node_list_lock should just protects tipc_num_nodes in the function. Signed-off-by: Ying Xue Reviewed-by: Erik Hugne Reviewed-by: Jon Maloy Signed-off-by: David S. Miller --- Reading git-diff-tree failed