From: Andrew Morton Date: Wed, 19 Apr 2006 05:20:38 +0000 (-0700) Subject: [PATCH] oom-kill: mm locking fix X-Git-Tag: v2.6.17-rc3~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c2c9b84d0c1edf4926b13661d5af3f0edccbce;p=pandora-kernel.git [PATCH] oom-kill: mm locking fix Dave Peterson 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed