From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] GFS2: Use new workqueue scheme
Date: Tue, 14 Sep 2010 09:48:42 +0100 [thread overview]
Message-ID: <1284454122.2445.1.camel@localhost> (raw)
In-Reply-To: <4C8F29D9.6060800@kernel.org>
Hi,
On Tue, 2010-09-14 at 09:52 +0200, Tejun Heo wrote:
> Hello,
>
> On 09/13/2010 08:26 PM, Steven Whitehouse wrote:
> >>From 29e8eb2a793cbf7ccba398b93f362a17f8cb4e6a Mon Sep 17 00:00:00 2001
> > From: Steven Whitehouse <swhiteho@redhat.com>
> > Date: Mon, 13 Sep 2010 16:23:00 +0100
> > Subject: GFS2: Use new workqueue scheme
>
> The changes look good to me.
>
> Acked-by: Tejun Heo <tj@kernel.org>
>
> > - glock_workqueue = create_workqueue("glock_workqueue");
> > + glock_workqueue = alloc_workqueue("glock_workqueue", WQ_RESCUER |
> > + WQ_HIGHPRI | WQ_FREEZEABLE, 0);
>
> Maybe explaning why HIGHPRI is necessary here would be a good idea?
>
Thanks for the review, I've updated that in the version now pushed into
my -nmw GFS2 tree.
> > diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c
> > index b1e9630..1c8bbf2 100644
> > --- a/fs/gfs2/main.c
> > +++ b/fs/gfs2/main.c
> > @@ -140,7 +140,7 @@ static int __init init_gfs2_fs(void)
> >
> > error = -ENOMEM;
> > gfs_recovery_wq = alloc_workqueue("gfs_recovery",
> > - WQ_NON_REENTRANT | WQ_RESCUER, 0);
> > + WQ_RESCUER | WQ_FREEZEABLE, 0);
>
> GFS2 was already using alloc_workqueue() before this patch?
>
> Thanks.
>
Yes, due to this patch:
commit 6ecd7c2dd9f5dd4f6e8f65c8027159f9c73b0e4c
Author: Tejun Heo <tj@kernel.org>
Date: Tue Jul 20 22:09:02 2010 +0200
gfs2: use workqueue instead of slow-work
:-)
Steve.
next prev parent reply other threads:[~2010-09-14 8:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-13 18:26 [Cluster-devel] GFS2: Use new workqueue scheme Steven Whitehouse
[not found] ` <4C8F29D9.6060800@kernel.org>
2010-09-14 8:48 ` Steven Whitehouse [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-09-09 12:36 Steven Whitehouse
[not found] ` <4C88DEB9.90600@kernel.org>
2010-09-09 13:45 ` Steven Whitehouse
[not found] ` <4C88E5BD.6070400@kernel.org>
2010-09-09 14:06 ` Steven Whitehouse
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=1284454122.2445.1.camel@localhost \
--to=swhiteho@redhat.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).