fix refrigerator() vs thaw_process() race
authorOleg Nesterov <oleg@tv-sign.ru>
Sun, 6 May 2007 21:50:40 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:12:58 +0000 (12:12 -0700)
commit433ecb4ab312f873870b67ee374502e84f6dcf92
tree6df7459af26ba1f09bfffcf7029a838037bb595a
parente87be1143472d841c1907e6e7ae4862a30e3595c
fix refrigerator() vs thaw_process() race

refrigerator() can miss a wakeup, "wait event" loop needs a proper memory
ordering.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/power/process.c