diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-02-06 20:30:01 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-08 16:55:46 -0800 |
commit | 9823ec9ded836ee7ca4fe5ab7964b9cdc8af010c (patch) | |
tree | 9390fcd8dca9c389a1ea1e39f974e760245af88c /drivers | |
parent | 353416099128914a684e8bb81e7475d8c2961cc3 (diff) | |
download | talos-obmc-linux-9823ec9ded836ee7ca4fe5ab7964b9cdc8af010c.tar.gz talos-obmc-linux-9823ec9ded836ee7ca4fe5ab7964b9cdc8af010c.zip |
staging: android/lowmemorykiller: Do not kill kernel threads
LMK should not try killing kernel threads.
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')
-rw-r--r-- | drivers/staging/android/lowmemorykiller.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c index 6e800d35ebda..ae38c39a1525 100644 --- a/drivers/staging/android/lowmemorykiller.c +++ b/drivers/staging/android/lowmemorykiller.c @@ -138,6 +138,9 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc) struct task_struct *p; int oom_adj; + if (tsk->flags & PF_KTHREAD) + continue; + p = find_lock_task_mm(tsk); if (!p) continue; |