From: Tejun Heo <tj@kernel.org>
To: NeilBrown <neilb@suse.de>
Cc: Christoph Hellwig <hch@infradead.org>,
Trond Myklebust <trond.myklebust@primarydata.com>,
NFS <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH/RFC] NFS: state manager thread must start running.
Date: Tue, 15 Jul 2014 10:51:11 -0400 [thread overview]
Message-ID: <20140715145111.GA18661@htj.dyndns.org> (raw)
In-Reply-To: <20140715181317.2de14c51@notabene.brown>
Hello, Neil.
On Tue, Jul 15, 2014 at 06:13:17PM +1000, NeilBrown wrote:
> Could do that (or per-client) but it doesn't really buy us anything does it?
It does buy some.
1. The kworker threads are more likely to be cache-hot than explicit
kthreads.
2. Workqueue is a lot eaiser to get right in terms of synchronization
and freezing.
3. Workqueue mandates well-defined boundaries between separate
execution instances which often makes it a lot easier to implement
and update kernel-wide features such as like freezer and runtime
kernel patching.
> The state manager assumes it is single threads, so it would need to be
> a single-threaded workqueue with always at least one thread running.
> That is much the same as a kthread.
>
> And then there is that fact that the current code explicitly enabled SIGKILL
> and maybe that is important.
If SIGKILL handling is mandatory (really?), kthread_worker can be used
for #2 and #3.
Thanks.
--
tejun
next prev parent reply other threads:[~2014-07-15 14:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-15 6:39 [PATCH/RFC] NFS: state manager thread must start running NeilBrown
2014-07-15 7:49 ` Christoph Hellwig
2014-07-15 8:13 ` NeilBrown
2014-07-15 14:51 ` Tejun Heo [this message]
2014-07-21 3:35 ` NeilBrown
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=20140715145111.GA18661@htj.dyndns.org \
--to=tj@kernel.org \
--cc=hch@infradead.org \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
--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