From: "J. Bruce Fields" <bfields@redhat.com>
To: Kinglong Mee <kinglongmee@gmail.com>
Cc: Trond Myklebust <trondmy@primarydata.com>,
"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 2/2] NFSv4: Fix callback server shutdown
Date: Thu, 27 Apr 2017 18:03:43 -0400 [thread overview]
Message-ID: <20170427220342.GC29775@parsley.fieldses.org> (raw)
In-Reply-To: <4275e06f-97c0-b5b9-e71c-db7380d90534@gmail.com>
On Thu, Apr 27, 2017 at 11:54:48AM +0800, Kinglong Mee wrote:
>
>
> On 4/27/2017 11:24, Trond Myklebust wrote:
> > On Thu, 2017-04-27 at 11:06 +0800, Kinglong Mee wrote:
> >>
> >> There is only one use of svc_set_num_threads that by nfsd,
> >> I'd like to change svc_set_num_threads and update nfsd than add a new
> >> function.
> >
> > You can't really combine the two methods. Either you choose signals or
> > you choose kthread_stop(). The problem is that signals require the
> > thread to be able to persist past the nfsd_destroy() (which again
> > forces things like nfsd() having to take nfsd_mutex), or you have to
> > make things synchronous, in which case having nfsd() try to take
> > nfsd_mutex causes deadlocks.
> >
> > IOW: if there is legacy behaviour here that requires the signal method,
> > then knfsd cannot be converted.
>
> Got it.
>
> Tested-and-reviewed-by: Kinglong Mee <kinglongmee@gmail.com>
So does what I have in git://linux-nfs.org/~bfields/linux.git nfsd-next
look correct?
(Alternatively, if Trond's taking this through his tree, that's fine
too, feel free to add my ACK.)
--b.
next prev parent reply other threads:[~2017-04-27 22:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-26 15:55 [PATCH 0/2] Fix the NFSv4 client callback channel shutdown Trond Myklebust
2017-04-26 15:55 ` [PATCH 1/2] SUNRPC: Refactor svc_set_num_threads() Trond Myklebust
2017-04-26 15:55 ` [PATCH 2/2] NFSv4: Fix callback server shutdown Trond Myklebust
2017-04-26 20:29 ` J. Bruce Fields
2017-04-27 3:06 ` Kinglong Mee
2017-04-27 3:13 ` [PATCH resend] NFSv4.x/callback: Create the callback service through svc_create_pooled Kinglong Mee
2017-04-27 3:24 ` [PATCH 2/2] NFSv4: Fix callback server shutdown Trond Myklebust
2017-04-27 3:54 ` Kinglong Mee
2017-04-27 22:03 ` J. Bruce Fields [this message]
2017-04-27 22:07 ` Trond Myklebust
2017-05-03 20:21 ` J. Bruce Fields
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=20170427220342.GC29775@parsley.fieldses.org \
--to=bfields@redhat.com \
--cc=kinglongmee@gmail.com \
--cc=linux-nfs@vger.kernel.org \
--cc=trondmy@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).