[PATCH 4/6] staging: android/lowmemorykiller: Better mm handling

Oleg Nesterov oleg at redhat.com
Wed Feb 8 15:34:47 UTC 2012

On 02/06, Anton Vorontsov wrote:
> 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).

Reviewed-by: Oleg Nesterov <oleg at redhat.com>

More information about the linaro-kernel mailing list