Hugh Dickins 7ba3485947 [PATCH] fix OOM killing of swapoff
These days, if you swapoff when there isn't enough memory, OOM killer gives
"BUG: scheduling while atomic" and the machine hangs: badness() needs to do
its PF_SWAPOFF return after the task_unlock (tasklist_lock is also held
here, so p isn't going to be freed: PF_SWAPOFF might get turned off at any
moment, but that doesn't really matter).

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2007-01-05 23:55:29 -08:00
..
2006-12-22 08:55:49 -08:00
2006-12-22 08:55:49 -08:00
2006-09-26 08:48:44 -07:00
2006-12-22 08:55:49 -08:00
2006-12-08 08:28:47 -08:00
2006-12-17 10:21:53 -08:00
2006-12-07 08:39:22 -08:00
2006-09-26 08:48:45 -07:00
2006-12-08 08:28:47 -08:00
2007-01-05 23:55:29 -08:00
2005-04-16 15:20:36 -07:00
2006-12-08 08:28:47 -08:00
2006-12-30 10:56:43 -08:00