mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* kthread, signals and PF_FREEZE (suspend)
@ 2004-02-16  0:18 Christophe Saout
  2004-02-16  3:38 ` Rusty Russell
  0 siblings, 1 reply; 7+ messages in thread
From: Christophe Saout @ 2004-02-16  0:18 UTC (permalink / raw)
  To: LKML; +Cc: Rusty Russell

Hi,

I was wondering, has kthread been tested with the suspend code?

When trying to freeze the processes the suspend code sets PF_FREEZE on a
process and calls signal_wake_up(p, 0);

That means that signal_pending() will return true for that process which
will make kthread stop the thread.

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).



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-17  5:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-16  0:18 kthread, signals and PF_FREEZE (suspend) Christophe Saout
2004-02-16  3:38 ` Rusty Russell
2004-02-16  9:55   ` Pavel Machek
2004-02-16 13:36   ` Christophe Saout
2004-02-16 16:53   ` Jamie Lokier
2004-02-16 17:12     ` Christophe Saout
2004-02-17  4:44     ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®