]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] oom-kill: mm locking fix
authorAndrew Morton <akpm@osdl.org>
Wed, 19 Apr 2006 05:20:38 +0000 (22:20 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 19 Apr 2006 16:13:49 +0000 (09:13 -0700)
commite925816d0ab3f569ea49fd27e154822fbef6a262
treebc986808cd7b5a8219a0c40ca9fdfc40524883e4
parentb8b03bd87dc26d8d88d5ff375bc13fffb0556939
[PATCH] oom-kill: mm locking fix

Dave Peterson <dsp@llnl.gov> points out that badness() is playing with
mm_structs without taking a reference on them.

mmput() can sleep, so taking a reference here (inside tasklist_lock) is
hard.  Fix it up via task_lock() instead.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/oom_kill.c