[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110321174845.GA31039@redhat.com>
Date: Mon, 21 Mar 2011 18:48:45 +0100
From: Oleg Nesterov <oleg@...hat.com>
To: Tejun Heo <tj@...nel.org>
Cc: roland@...hat.com, jan.kratochvil@...hat.com,
vda.linux@...glemail.com, linux-kernel@...r.kernel.org,
torvalds@...ux-foundation.org, akpm@...ux-foundation.org,
indan@....nu
Subject: Re: [PATCH 8/8] job control: Don't send duplicate job control stop
notification while ptraced
On 03/08, Tejun Heo wrote:
>
> static bool task_participate_group_stop(struct task_struct *task)
> {
> @@ -284,7 +288,11 @@ static bool task_participate_group_stop(struct task_struct *task)
> if (!WARN_ON_ONCE(sig->group_stop_count == 0))
> sig->group_stop_count--;
>
> - if (!sig->group_stop_count) {
> + /*
> + * Tell the caller to notify completion iff we are entering into a
> + * fresh group stop. Read comment in do_signal_stop() for details.
> + */
> + if (!sig->group_stop_count && !(sig->flags & SIGNAL_STOP_STOPPED)) {
> sig->flags = SIGNAL_STOP_STOPPED;
> return true;
Ah, indeed. And this fixes the problems with the extra notification I
mentioned when I was looking at 1/8.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists