From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Linux-pm mailing list <linux-pm@lists.linux-foundation.org>,
Oleg Nesterov <oleg@tv-sign.ru>
Subject: Re: Singlethread vs. freezable workqueues
Date: Mon, 21 May 2007 23:20:06 +0200 [thread overview]
Message-ID: <200705212320.07126.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0705211621000.5679-100000@iolanthe.rowland.org>
On Monday, 21 May 2007 22:23, Alan Stern wrote:
> On Mon, 21 May 2007, Rafael J. Wysocki wrote:
>
> > Hi,
> >
> > On Monday, 21 May 2007 21:33, Alan Stern wrote:
> > > Raphael:
> > >
> > > Are we now committed to making freezable workqueues always
> > > singlethreaded? Is it at all likely to change back? Or should I
> > > introduce a "create_singlethread_freezeable_workqueue" macro?
> >
> > This was done as a quick fix of an issue with one driver that started to use
> > (broken) freezable workqueues when we were not watching. ;-)
> >
> > We are going to have multithread freezable workqueues as well, but that'll
> > take some time. We've discussed this a bit with Oleg and I believe he has an
> > idea of how it can be done cleanly.
>
> The reason I asked is because, prior to the release of 2.6.22, I sent
> in a patch which added a create_singlethread_freezeable_workqueue()
> macro. Now it isn't needed, since create_freezeable_workqueue() does
> the same thing. Is there any reason to keep the macro?
>
> I'm worried that if I get rid of it and simply define the workqueue as
> freezable, then at some time in the future it might turn into a
> multithread workqueue without my knowledge.
If we introduce multithread freezable workqueues again, we'll have to review
all current users of create_freezeable_workqueue() anyway to see whether or
not they need to use a singlethread workqueue. Still, if you added a comment
saying that your workqueue had to be singlethread, that would certainly help. ;-)
Greetings,
Rafael
next prev parent reply other threads:[~2007-05-21 21:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-21 19:33 Singlethread vs. freezable workqueues Alan Stern
2007-05-21 19:54 ` Rafael J. Wysocki
2007-05-21 20:23 ` Alan Stern
2007-05-21 21:20 ` Rafael J. Wysocki [this message]
2007-05-22 12:45 ` Oleg Nesterov
2007-05-22 15:03 ` Alan Stern
2007-05-22 16:26 ` Oleg Nesterov
2007-05-21 20:54 ` Oleg Nesterov
2007-05-21 21:28 ` Rafael J. Wysocki
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=200705212320.07126.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-pm@lists.linux-foundation.org \
--cc=oleg@tv-sign.ru \
--cc=stern@rowland.harvard.edu \
/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