swsusp: kill bogus wakeup warning

Pavel Machek (pavel@ucw.cz)
Fri, 21 Feb 2003 10:48:50 +0100


Hi!

This kills 'bogus wakeup' warning from pdflush. Patch from Nigel,
please apply.
Pavel

--- clean/mm/pdflush.c 2003-02-15 18:51:31.000000000 +0100
+++ linux/mm/pdflush.c 2003-02-21 10:41:33.000000000 +0100
@@ -103,9 +103,11 @@
my_work->when_i_went_to_sleep = jiffies;
spin_unlock_irq(&pdflush_lock);

- if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
schedule();
+ if (current->flags & PF_FREEZE) {
+ refrigerator(PF_IOTHREAD);
+ continue;
+ }

spin_lock_irq(&pdflush_lock);
if (!list_empty(&my_work->list)) {

-- 
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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/