[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190730163229.GD18501@redhat.com>
Date: Tue, 30 Jul 2019 18:32:30 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Christian Brauner <christian@...uner.io>
Cc: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
tj@...nel.org, tglx@...utronix.de, prsood@...eaurora.org,
avagin@...il.com, Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH] exit: make setting exit_state consistent
On 07/29, Christian Brauner wrote:
>
> --- a/kernel/exit.c
> +++ b/kernel/exit.c
> @@ -734,9 +734,10 @@ static void exit_notify(struct task_struct *tsk, int group_dead)
> autoreap = true;
> }
>
> - tsk->exit_state = autoreap ? EXIT_DEAD : EXIT_ZOMBIE;
> - if (tsk->exit_state == EXIT_DEAD)
> + if (autoreap) {
> + tsk->exit_state = EXIT_DEAD;
> list_add(&tsk->ptrace_entry, &dead);
> + }
>
Acked-by: Oleg Nesterov <oleg@...hat.com>
Powered by blists - more mailing lists