]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: eliminate nl_sk_hash_lock
authorYing Xue <ying.xue@windriver.com>
Mon, 12 Jan 2015 06:52:23 +0000 (14:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2015 19:01:00 +0000 (14:01 -0500)
commitef1875751f785b94f3599d6bb558e5defc8d1d91
tree0dbc399bf67764d8c1cb9ca9a46ef859a28d3050
parentb03c27c2033117c95342313e7073b3bcf865aae2
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>
net/netlink/af_netlink.c
net/netlink/af_netlink.h
net/netlink/diag.c