From: Anton Vorontsov Date: Mon, 6 Feb 2012 16:29:47 +0000 (+0400) Subject: staging: android/lowmemorykiller: Better mm handling X-Git-Tag: sz_beta4~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c56bbaeb85b55cb1df5cc4b44fc165f4757b4b37;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