aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2007-01-05 16:37:03 -0800
committerChris Wright <chrisw@sous-sol.org>2007-01-10 11:05:23 -0800
commit85a181bb8fbaf93019651dbfa5034788b7164fa1 (patch)
treeba405932115d1d52481773c6e238c174ebc7887a /net/lapb/lapb_subr.c
parentdd2b609d2317fb243cc01eb984c91cc639a84d28 (diff)
[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: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions