Anton Vorontsov 3eaa73bde2 arm: use clear_tasks_mm_cpumask()
Checking for process->mm is not enough because process' main thread may
exit or detach its mm via use_mm(), but other threads may still have a
valid mm.

To fix this we would need to use find_lock_task_mm(), which would walk up
all threads and returns an appropriate task (with task lock held).

clear_tasks_mm_cpumask() has this issue fixed, so let's use it.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-31 17:49:29 -07:00
..
2008-08-12 19:54:09 +01:00
2012-03-28 18:30:01 +01:00
2008-05-30 10:33:49 +02:00
2012-03-29 18:02:10 -07:00
2012-03-28 18:30:01 +01:00
2012-03-24 09:38:56 +00:00
2010-10-29 13:14:40 -05:00
2012-05-08 12:35:06 +02:00
2012-05-21 15:15:24 +01:00
2012-05-21 23:52:30 -04:00
2012-03-28 18:30:01 +01:00
2012-05-31 17:49:29 -07:00
2012-03-28 18:30:01 +01:00