Re: Freezeable workqueues [Was: 2.6.22-rc1: Broken suspend on SMP with tifm]

From: Rafael J. Wysocki
Date: Tue May 15 2007 - 16:49:42 EST


On Tuesday, 15 May 2007 02:56, Alex Dubov wrote:
> >
> > > > - Do we need freezeable workqueues ?
> > >
> > > Well, we have at least one case in which they appear to be useful.
> >
>
> I need freezeable wq exactly for the fact that they are synchronized with suspend/resume. My
> workitem may do device_register/unregister and it can (and will be) scheduled from irq handler
> during resume. As far as I understand, before freezeable wqs, kthreads were the only way to
> achieve this behavior,

That's correct.

> which is less convenient.

Thanks for the explanation.

Greetings,
Rafael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/