[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <25959.1247234844@redhat.com>
Date: Fri, 10 Jul 2009 15:07:24 +0100
From: David Howells <dhowells@...hat.com>
To: Oleg Nesterov <oleg@...hat.com>
Cc: dhowells@...hat.com, Christoph Hellwig <hch@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
James Morris <jmorris@...ei.org>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Roland McGrath <roland@...hat.com>,
Stephen Smalley <sds@...ho.nsa.gov>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 -mm 1/2] rename is_single_threaded(task) to current_is_single_threaded(void)
Oleg Nesterov <oleg@...hat.com> wrote:
> - is_single_threaded(task) is not safe unless task == current,
> we can't use task->signal or task->mm.
>
> - it doesn't make sense unless task == current, the task can
> fork right after the check.
>
> Rename it to current_is_single_threaded() and kill the argument.
>
> Signed-off-by: Oleg Nesterov <oleg@...hat.com>
> Acked-by: James Morris <jmorris@...ei.org>
Acked-by: David Howells <dhowells@...hat.com>
--
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