linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kinglong Mee <kinglongmee@gmail.com>
To: Trond Myklebust <trondmy@primarydata.com>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Cc: "bfields@redhat.com" <bfields@redhat.com>
Subject: Re: [PATCH 2/2] NFSv4: Fix callback server shutdown
Date: Thu, 27 Apr 2017 11:54:48 +0800	[thread overview]
Message-ID: <4275e06f-97c0-b5b9-e71c-db7380d90534@gmail.com> (raw)
In-Reply-To: <1493263484.1401.2.camel@primarydata.com>



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>

thanks,
Kinglong Mee

> 
>> Ps,
>> "NFSv4.x/callback: Create the callback service through
>> svc_create_pooled"
>> must be include before the fix. I will resend it later.
>>
> OK. Thanks!
> 

  reply	other threads:[~2017-04-27  3:54 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 [this message]
2017-04-27 22:03           ` J. Bruce Fields
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=4275e06f-97c0-b5b9-e71c-db7380d90534@gmail.com \
    --to=kinglongmee@gmail.com \
    --cc=bfields@redhat.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).