From: Anton Vorontsov Date: Thu, 31 May 2012 23:26:26 +0000 (-0700) Subject: um: properly check all process' threads for a live mm X-Git-Tag: v3.5-rc1~21^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c922c51e6924298f8271d75732964f1ffdecaf2;p=pandora-kernel.git um: properly check all process' threads for a live mm kill_off_processes() might miss a valid process, this is because checking for process->mm is not enough. Process' main thread 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 task lock held). Suggested-by: Oleg Nesterov Signed-off-by: Anton Vorontsov Cc: Richard Weinberger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed