Re: [PATCH][RFC] Always unlock 'tasklist_lock' inkernel/exit.c::do_wait()

From: Andrew Morton
Date: Tue Dec 21 2010 - 00:58:39 EST


On Mon, 20 Dec 2010 23:30:38 +0100 (CET) Jesper Juhl <jj@xxxxxxxxxxxxx> wrote:

> The Coverity checker spotted this. I think it has a point, but I'm not
> intimate with this code so there could be somethingI'm missing.
>
> It seems that kernel/exit.c::do_wait() does not always release
> 'tasklist_lock'.

do_wait_thread() and ptrace_do_wait() will have released tasklist_lock
if they returned non-zero.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/