Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759246AbYLDAzE (ORCPT ); Wed, 3 Dec 2008 19:55:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757014AbYLDAxZ (ORCPT ); Wed, 3 Dec 2008 19:53:25 -0500 Received: from mx1.redhat.com ([66.187.233.31]:37220 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756692AbYLDAxY (ORCPT ); Wed, 3 Dec 2008 19:53:24 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Oleg Nesterov X-Fcc: ~/Mail/linus Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, mingo@elte.hu, rnalumasu@gmail.com Subject: Re: do_wait() vs do_notify_parent_cldstop() theoretical race? In-Reply-To: Oleg Nesterov's message of Sunday, 23 November 2008 22:55:11 +0100 <20081123215511.GB9097@redhat.com> References: <200811212015.mALKFMs4019558@imap1.linux-foundation.org> <20081123213929.GA9097@redhat.com> <20081123215511.GB9097@redhat.com> X-Antipastobozoticataclysm: Bariumenemanilow Message-Id: <20081204005203.9EDFBFC3BE@magilla.sf.frob.com> Date: Sun, 23 Nov 2008 23:31:21 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 418 Lines: 11 I guess. There might well be something in there implicitly that's actually a memory barrier already. But sounds like that should use set_current_state(). Thanks, Roland -- 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/