Received: by 10.213.65.68 with SMTP id h4csp2036274imn; Thu, 5 Apr 2018 07:58:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/m2zHGxuPI6733UAQG7vdMJrvPdNSy6DUV+qxfuUW+VoG0CMGiNdzgF6G5QX51LwqoUpyr X-Received: by 10.99.107.8 with SMTP id g8mr5250311pgc.271.1522940320114; Thu, 05 Apr 2018 07:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522940320; cv=none; d=google.com; s=arc-20160816; b=l0Ucr+KFzi195l146IGBEHpqm5imhMdqBg7NX8QgZz6mliiNVyoq49r9H+J4uhYRoO kDZbjfE/pJzAFs66K/ETgipuqiiZIn1QK/Hv/dTXLHwrM7wxzGVFfvQe1CUh/bma63Rc mWxwWu2JA2c3f14GbIoTuBAhU3rBFiFeyB9TR9GJmU8kKYRJ0yFL58J3EcJX825+8RHV qACOdhA5nruW5Zeeys5UuhJGDTlDsQgGKRXfw/6kxE2yXNtqMMDbnyhlLku98pRfaNlE 42A7XT14V52nxhQt/9QUtnFWLMcOZuYQ6nNhgEXjdu3+F9sYtAaL1HYkFcS/QthR1MEA HtWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=EEUFTyOfz6GZMGRGK/JDzWAoywgBOrRRd5GwscCloOs=; b=n8rjOI2dT55PpTfvmmDU+J2Vx9RafUj4BCdsxAF0RDhQcs3xgpCeM6L/ROJhXAiNj2 foRlTfGtiblMng+X36WLSsvFQQe77xNor0ccDgBYlc/gaFye7Z749M2wjff3OvfKwDdO RgJBvIJ3v/nbHHFYbr9cmhIcc2f8CL+/fxX0w3qvuLsX5PnI9mKPgEzz/m8QJaDaHUWo gEARsbDVX+HO6FgI9OpSXJxLzqx7h9gyrNFFM5N77EDTj2JBjj7HJah4ee5PTOp2rPY+ URGHSD+Bxm85bS2mUj9QBnHpey8ir+87acK5n/uD20c/JtraY7q+4pq4YW5B8Mi4p9NC tcTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Lk9s3LHN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si5849894plh.231.2018.04.05.07.58.26; Thu, 05 Apr 2018 07:58:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Lk9s3LHN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751365AbeDEO5K (ORCPT + 99 others); Thu, 5 Apr 2018 10:57:10 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:36334 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeDEO5J (ORCPT ); Thu, 5 Apr 2018 10:57:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EEUFTyOfz6GZMGRGK/JDzWAoywgBOrRRd5GwscCloOs=; b=Lk9s3LHN57Y/OYbwppvAPpcUk hRK8NYYAKI1w5MDba0kMUx6PjLA1DCAifJ4N6wr2A+1TQes9twQJo34u6eZ/i3WEjZnXGFekpDVhN qc5cYQExmgk1XgQP6GBdJFIRp/Fvk3c62eUIgK1RWcvL+fGzKxhVjrPUgnYqhkzABYzWl/o+5CyQ6 aY6am2zPtp4vxFg2gP6UgH5yW2efwXLDZ0xAyMMwSxvZKWOTVju+w9WPk9COvh39X6F3fCinpRdVN dW6cnYoq03BPeF3rU/Qafn1FazE/Ef517AZKyqThOqoiZ7Igx4oj+SOV5LCt7QLJB9TxWuNEeexmt fyvQeUiZA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f46Jo-0005rc-6U; Thu, 05 Apr 2018 14:56:52 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4349D2029F86F; Thu, 5 Apr 2018 16:56:50 +0200 (CEST) Date: Thu, 5 Apr 2018 16:56:50 +0200 From: Peter Zijlstra To: Alan Stern Cc: Daniel Jordan , parri.andrea@gmail.com, will.deacon@arm.com, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, paulmck@linux.vnet.ibm.com, akiyks@gmail.com, linux-kernel@vger.kernel.org, Steven Sistare , Pasha Tatashin Subject: Re: Control dependency between prior load in while condition and later store? Message-ID: <20180405145650.GT4043@hirez.programming.kicks-ass.net> References: <20180405073204.GP4043@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2018 at 10:35:22AM -0400, Alan Stern wrote: > In this example, READ_ONCE() is in fact a volatile access, so we're > okay. But our documentation clearly states a control-dep can only be from a READ_ONCE() (or something stronger), right? So we should be good irrespectively.