[PATCH 6/6] staging: android/lowmemorykiller: Do not kill kernel threads

KOSAKI Motohiro kosaki.motohiro at gmail.com
Mon Feb 6 21:38:26 UTC 2012


2012/2/6 Anton Vorontsov <anton.vorontsov at linaro.org>:
> LMK should not try killing kernel threads.
>
> Suggested-by: Oleg Nesterov <oleg at redhat.com>
> Signed-off-by: Anton Vorontsov <anton.vorontsov at linaro.org>
> ---
>  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 6e800d3..ae38c39 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;
> +

ack.



More information about the linaro-kernel mailing list