linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: davem@davemloft.net, trond.myklebust@primarydata.com,
	anna.schumaker@netapp.com, bfields@fieldses.org,
	jlayton@kernel.org, dhowells@redhat.com, ktkhai@virtuozzo.com,
	keescook@chromium.org, dwindsor@gmail.com, ishkamiel@gmail.com,
	elena.reshetova@intel.com, linux-nfs@vger.kernel.org,
	linux-afs@lists.infradead.org, netdev@vger.kernel.org
Subject: [PATCH net-next nfs 1/6] net: Convert rpcsec_gss_net_ops
Date: Tue, 13 Mar 2018 13:49:15 +0300	[thread overview]
Message-ID: <152093815494.8636.6607369744413088370.stgit@localhost.localdomain> (raw)
In-Reply-To: <152093778442.8636.10592672493816457119.stgit@localhost.localdomain>

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 <ktkhai@virtuozzo.com>
---
 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,
 };
 
 /*


  reply	other threads:[~2018-03-13 10:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-13 10:49 [PATCH net-next nfs 0/6] Converting pernet_operations (part #7) Kirill Tkhai
2018-03-13 10:49 ` Kirill Tkhai [this message]
2018-03-23 18:53   ` [PATCH net-next nfs 1/6] net: Convert rpcsec_gss_net_ops Anna Schumaker
2018-03-26  9:30     ` Kirill Tkhai
2018-03-26 18:36     ` J. Bruce Fields
2018-03-27  8:52       ` Kirill Tkhai
2018-03-23 18:55   ` Anna Schumaker
2018-03-13 10:49 ` [PATCH net-next nfs 2/6] net: Convert sunrpc_net_ops Kirill Tkhai
2018-03-23 18:53   ` Anna Schumaker
2018-03-13 10:49 ` [PATCH net-next nfs 3/6] net: Convert nfsd_net_ops Kirill Tkhai
2018-03-13 10:49 ` [PATCH net-next nfs 4/6] net: Convert nfs4_dns_resolver_ops Kirill Tkhai
2018-03-23 18:53   ` Anna Schumaker
2018-03-13 10:49 ` [PATCH net-next nfs 5/6] net: Convert nfs4blocklayout_net_ops Kirill Tkhai
2018-03-23 18:54   ` Anna Schumaker
2018-03-13 10:50 ` [PATCH net-next nfs 6/6] net: Convert rxrpc_net_ops Kirill Tkhai
2018-03-13 15:26 ` [PATCH net-next nfs 0/6] Converting pernet_operations (part #7) David Miller
2018-03-15 13:32 ` Kirill Tkhai
2018-03-15 14:24   ` J. Bruce Fields
2018-03-15 14:46     ` Kirill Tkhai
2018-03-20 16:49 ` [PATCH net-next nfs 6/6] net: Convert rxrpc_net_ops David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=152093815494.8636.6607369744413088370.stgit@localhost.localdomain \
    --to=ktkhai@virtuozzo.com \
    --cc=anna.schumaker@netapp.com \
    --cc=bfields@fieldses.org \
    --cc=davem@davemloft.net \
    --cc=dhowells@redhat.com \
    --cc=dwindsor@gmail.com \
    --cc=elena.reshetova@intel.com \
    --cc=ishkamiel@gmail.com \
    --cc=jlayton@kernel.org \
    --cc=keescook@chromium.org \
    --cc=linux-afs@lists.infradead.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=trond.myklebust@primarydata.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).