Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752277AbZGJBuG (ORCPT ); Thu, 9 Jul 2009 21:50:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750919AbZGJBt5 (ORCPT ); Thu, 9 Jul 2009 21:49:57 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44322 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732AbZGJBt4 (ORCPT ); Thu, 9 Jul 2009 21:49:56 -0400 Date: Fri, 10 Jul 2009 03:46:23 +0200 From: Oleg Nesterov To: Christoph Hellwig Cc: Andrew Morton , David Howells , James Morris , "Paul E. McKenney" , Roland McGrath , Stephen Smalley , linux-kernel@vger.kernel.org Subject: Re: [PATCH -mm 1/2] rename is_single_threaded(task) to is_current_single_threaded(void) Message-ID: <20090710014623.GA4723@redhat.com> References: <20090709212847.GA10238@redhat.com> <20090710013322.GA27719@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090710013322.GA27719@infradead.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 886 Lines: 26 On 07/09, Christoph Hellwig wrote: > > On Thu, Jul 09, 2009 at 11:28:47PM +0200, Oleg Nesterov wrote: > > (on top of rework-fix-is_single_threaded.patch) > > > > - 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 is_current_single_threaded() and kill the argument. > > It would be more natural to put the current first, as in > current_is_single_threaded(). That would also fit with the various > other current_* helpers we have. Agreed, re-sending. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/