From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kirill Tkhai Subject: [PATCH net-next v1 1/4] net: Convert rpcsec_gss_net_ops Date: Mon, 26 Mar 2018 12:28:47 +0300 Message-ID: <152205652718.6058.13986098374565240827.stgit@localhost.localdomain> References: <152205594525.6058.12471686205983419325.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: davem@davemloft.net, anna.schumaker@netapp.com, trond.myklebust@primarydata.com, ktkhai@virtuozzo.com, netdev@vger.kernel.org Return-path: Received: from mail-eopbgr40113.outbound.protection.outlook.com ([40.107.4.113]:14656 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751713AbeCZJ2x (ORCPT ); Mon, 26 Mar 2018 05:28:53 -0400 In-Reply-To: <152205594525.6058.12471686205983419325.stgit@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: These pernet_operations initialize and destroy sunrpc_net_id refered per-net items. Only used global list is cache_list, and accesses already serialized. sunrpc_destroy_cache_detail() check for list_empty() without cache_list_lock, but when it's called from unregister_pernet_subsys(), there can't be callers in parallel, so we won't miss list_empty() in this case. Signed-off-by: Kirill Tkhai Acked-by: Anna Schumaker --- net/sunrpc/auth_gss/auth_gss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 9463af4b32e8..44f939cb6bc8 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c @@ -2063,6 +2063,7 @@ static __net_exit void rpcsec_gss_exit_net(struct net *net) static struct pernet_operations rpcsec_gss_net_ops = { .init = rpcsec_gss_init_net, .exit = rpcsec_gss_exit_net, + .async = true, }; /*