From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ying Xue Subject: [PATCH net-next 0/3] remove nl_sk_hash_lock from netlink socket Date: Fri, 9 Jan 2015 16:23:35 +0800 Message-ID: <1420791818-22150-1-git-send-email-ying.xue@windriver.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , To: Return-path: Received: from mail1.windriver.com ([147.11.146.13]:32871 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753346AbbAIIYH (ORCPT ); Fri, 9 Jan 2015 03:24:07 -0500 Sender: netdev-owner@vger.kernel.org List-ID: After tipc socket successfully avoids the involvement of an extra lock with rhashtable_lookup_insert(), it's possible for netlink socket to remove its hash socket lock now. But as netlink socket needs a compare function to look for an object, we first introduce a new function called rhashtable_lookup_compare_insert() in commit #1 which is implemented based on original rhashtable_lookup_insert(). We subsequently remove nl_sk_hash_lock from netlink socket with the new introduced function in commit #2. Lastly, as Thomas requested, we add commit #3 to indicate the implementation of what the grow and shrink decision function must enforce min/max shift. Ying Xue (3): rhashtable: involve rhashtable_lookup_compare_insert routine netlink: eliminate nl_sk_hash_lock rhashtable: add a note for grow and shrink decision functions include/linux/rhashtable.h | 9 +++++++++ lib/rhashtable.c | 42 ++++++++++++++++++++++++++++++++++++++++-- net/netlink/af_netlink.c | 43 ++++++++++++++++++++++--------------------- net/netlink/af_netlink.h | 1 - net/netlink/diag.c | 10 +++++----- 5 files changed, 76 insertions(+), 29 deletions(-) -- 1.7.9.5