public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@tv-sign.ru>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: Singlethread vs. freezable workqueues
Date: Tue, 22 May 2007 16:45:20 +0400	[thread overview]
Message-ID: <20070522124520.GA256@tv-sign.ru> (raw)
In-Reply-To: <200705212320.07126.rjw@sisk.pl>

On 05/21, Rafael J. Wysocki wrote:
>
> On Monday, 21 May 2007 22:23, Alan Stern wrote:
> > 
> > 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. ;-)

Probably Alan is right? Perhaps it is better to rename it to
create_singlethread_freezeable_workqueue(). This way we don't need to audit
the users when we add multithread freezable wqs.

Also, this name is more consistent wrt create_workqueue/create_singlethread_workqueue.

Oleg.

  reply	other threads:[~2007-05-22 12:45 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
2007-05-22 12:45       ` Oleg Nesterov [this message]
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=20070522124520.GA256@tv-sign.ru \
    --to=oleg@tv-sign.ru \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rjw@sisk.pl \
    /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