linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bfields@fieldses.org (J. Bruce Fields)
To: Trond Myklebust <trondmy@primarydata.com>
Cc: "kinglongmee@gmail.com" <kinglongmee@gmail.com>,
	"bfields@redhat.com" <bfields@redhat.com>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 2/2] NFSv4: Fix callback server shutdown
Date: Wed, 3 May 2017 16:21:50 -0400	[thread overview]
Message-ID: <20170503202150.GB21467@fieldses.org> (raw)
In-Reply-To: <1493330824.34802.1.camel@primarydata.com>

On Thu, Apr 27, 2017 at 10:07:07PM +0000, Trond Myklebust wrote:
> On Thu, 2017-04-27 at 18:03 -0400, J. Bruce Fields wrote:
> > 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.)
> > 
> If you've already got it queued up then I'm fine with that. I have it
> in my "testing" branch (which passes ☺) but haven't yet moved it into
> linux-next.

OK, I'll take it.

--b.

      reply	other threads:[~2017-05-03 20:21 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
2017-04-27 22:07             ` Trond Myklebust
2017-05-03 20:21               ` J. Bruce Fields [this message]

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=20170503202150.GB21467@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=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).