From: Ying Xue Date: Mon, 12 Jan 2015 06:52:23 +0000 (+0800) Subject: netlink: eliminate nl_sk_hash_lock X-Git-Tag: fixes-v4.0-rc1~150^2~244^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5adde9468b0;p=pandora-kernel.git 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 Cc: Thomas Graf Acked-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed