summaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.h
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2015-01-12 14:52:23 +0800
committerDavid S. Miller <davem@davemloft.net>2015-01-13 14:01:00 -0500
commitc5adde9468b0714a051eac7f9666f23eb10b61f7 (patch)
tree0dbc399bf67764d8c1cb9ca9a46ef859a28d3050 /net/netlink/af_netlink.h
parent7a868d1e9ab3c534c5ad44e3e5dc46753a1e5636 (diff)
downloadlinux-c5adde9468b0714a051eac7f9666f23eb10b61f7.tar.gz
linux-c5adde9468b0714a051eac7f9666f23eb10b61f7.tar.bz2
linux-c5adde9468b0714a051eac7f9666f23eb10b61f7.zip
netlink: eliminate nl_sk_hash_lock
As rhashtable_lookup_compare_insert() can guarantee the process of search and insertion is atomic, it's safe to eliminate the nl_sk_hash_lock. After this, object insertion or removal will be protected with per bucket lock on write side while object lookup is guarded with rcu read lock on read side. Signed-off-by: Ying Xue <ying.xue@windriver.com> Cc: Thomas Graf <tgraf@suug.ch> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink/af_netlink.h')
-rw-r--r--net/netlink/af_netlink.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.h b/net/netlink/af_netlink.h
index fd96fa76202a..7518375782f5 100644
--- a/net/netlink/af_netlink.h
+++ b/net/netlink/af_netlink.h
@@ -74,6 +74,5 @@ struct netlink_table {
extern struct netlink_table *nl_table;
extern rwlock_t nl_table_lock;
-extern struct mutex nl_sk_hash_lock;
#endif