diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-02-06 20:29:47 +0400 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-13 14:47:34 +1000 |
commit | 02f83a692461160e7652c4ecaaa632f2339e0f53 (patch) | |
tree | b7ca39fe29a97f95ba59181570036b64fa52b239 /drivers/char/virtio_console.c | |
parent | e6edd4723129b31402ad2da3d579abfaf5286f4d (diff) | |
download | kernel_samsung_smdk4412-02f83a692461160e7652c4ecaaa632f2339e0f53.tar.gz kernel_samsung_smdk4412-02f83a692461160e7652c4ecaaa632f2339e0f53.tar.bz2 kernel_samsung_smdk4412-02f83a692461160e7652c4ecaaa632f2339e0f53.zip |
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 <oleg@redhat.com>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/virtio_console.c')
0 files changed, 0 insertions, 0 deletions