swsusp: kill bogus wakeup warning

From: Pavel Machek (pavel@ucw.cz)
Date: Fri Feb 21 2003 - 04:48:50 EST


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/



This archive was generated by hypermail 2b29 : Sun Feb 23 2003 - 22:00:33 EST