Re: kthread, signals and PF_FREEZE (suspend)

From: Pavel Machek
Date: Mon Feb 16 2004 - 04:59:16 EST


Hi!

> > The workqueues have PF_IOTHREAD set and I'm only seeing those on my
> > machine that's why it doesn't fail.
> >
> > But the migration threads for example call signal_pending() directly
> > after schedule() before checking PF_FREEZE and calling refrigerator()
> > (which BTW flushes all signals).
>
> This will only happen on SMP systems with > 1 cpu though? I don't
> think suspend works there anyway.
>
> However, ksoftirqd will die I think: that will hurt if lots of irqs
> come in.
>
> Pavel, what is the answer here? Should the refrigerator code be in
> the kthread infrastructure? Why does the workqueue code set
> PF_IOTHREAD?

I assumed that workqueues may be needed for harddisks to
function... If that's the case, it can't be simply stopped.
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
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/