From: Anton Vorontsov Date: Mon, 6 Feb 2012 16:29:47 +0000 (+0400) Subject: staging: android/lowmemorykiller: Better mm handling X-Git-Tag: v3.4-rc1~186^2~176^2~159 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95670001188911f9d466875cd68e3681f39df38a;p=pandora-kernel.git staging: android/lowmemorykiller: Better mm handling LMK should not directly check for task->mm. The reason is that the process' threads may exit or detach its mm via use_mm(), but other threads may still have a valid mm. To catch this we use find_lock_task_mm(), which walks up all threads and returns an appropriate task (with lock held). Suggested-by: Oleg Nesterov Reviewed-by: Oleg Nesterov Signed-off-by: Anton Vorontsov Acked-by: KOSAKI Motohiro Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed