]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ACPI suspend/resume locking fix
authorAndrew Morton <akpm@digeo.com>
Mon, 10 Mar 2003 15:41:28 +0000 (07:41 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 10 Mar 2003 15:41:28 +0000 (07:41 -0800)
Patch from Andreas Mohr <andi@rhlx01.fht-esslingen.de>

Need to retake the spinlock in __pdflush() before continuing.

mm/pdflush.c

index deb33a7755f0c8146fe1fecd08b63b9ee65c9e27..cebfb8c42f25d2145512a8de90d8516bddfe1e40 100644 (file)
@@ -106,6 +106,7 @@ static int __pdflush(struct pdflush_work *my_work)
                schedule();
                if (current->flags & PF_FREEZE) {
                        refrigerator(PF_IOTHREAD);
+                       spin_lock_irq(&pdflush_lock);
                        continue;
                }