Received: by 10.213.65.68 with SMTP id h4csp2059491imn; Thu, 5 Apr 2018 08:17:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/JtwtWQzUi/0vc5zDOlA6U6d5+1g81MnGZM8NBUbUMTmszV5H11AKLiAzCqOV0wJkidgrN X-Received: by 2002:a17:902:bf01:: with SMTP id bi1-v6mr21845116plb.249.1522941443773; Thu, 05 Apr 2018 08:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522941443; cv=none; d=google.com; s=arc-20160816; b=VeoxcUhQtxaYI52EeyXGjxitrXKr7elg7xiTA99HplxQEAIP7O5gtXCplGbqLvCmR3 oQ2MBZ7oTUk35SopvmE7146e1vn51nJ6tAvasEdk7FtAPNKAx3BKiOJDmzmri/RjdEKr IW0V7FNUx9Zpe9E3/jDrJC5CvfcQ/8pcEJW/3EF+QM0p469Wtblkz2DYGfgrQYm4WRjH OLkYCTlLhrRkOrdZB8+/cRqtg/fjOkHM+Bohjirc+h5tEEeTSrMuc8WRRA8DRm6Y5b9k +GhbkYxey7S9eGBnhFOSsdm5ovbH/Va1vnu54o4MGm9GIwJbdXT9gMRiV1LzKIWCc1Q6 wjiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date:arc-authentication-results; bh=fXHxxqpYBjRnzgyc4z0t1xkgl6kHbAcHXwlu7nJ4IAc=; b=JRmE3zT0GwgcV9su5QCtkH2H3L+dGcC/bBbvUfH13D/t0ilSXb1885s4dC0mX820xx vEyrJ58peWL61Nt3xQDhmMAK9xKXfdiDI2s9s/Xg3EcD4JURsQkqBFLPWmtg10k+2snu HGcl5q2alHFvS6d16JyqzU+WlupBwn5ICq7JkGibZN8UpIrtWQjoA4+caqokanx/HBj4 tdSj1P5T65a8TSomBLbnY3KovE/CNvfqQqs0GuLoV2LhdGGOSj5GK0gTUGT9HJVZgyhc 1xWAzD/74GIf6gtSd3OLKbHQg7zfuLwKfzrFzT40101I03VpP8vANOUgZc7jOdQp5lQv YtOA== ARC-Authentication-Results: i=1; mx.google.com; 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 t2si5555651pgb.209.2018.04.05.08.17.09; Thu, 05 Apr 2018 08:17:23 -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; 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 S1751346AbeDEPQC (ORCPT + 99 others); Thu, 5 Apr 2018 11:16:02 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:55658 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751038AbeDEPQC (ORCPT ); Thu, 5 Apr 2018 11:16:02 -0400 Received: (qmail 2674 invoked by uid 2102); 5 Apr 2018 11:16:00 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 5 Apr 2018 11:16:00 -0400 Date: Thu, 5 Apr 2018 11:16:00 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Peter Zijlstra cc: Daniel Jordan , , , , , , , , , , , Steven Sistare , Pasha Tatashin Subject: Re: Control dependency between prior load in while condition and later store? In-Reply-To: <20180405145650.GT4043@hirez.programming.kicks-ass.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Apr 2018, Peter Zijlstra wrote: > 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. Agreed. My point was that these are delicate issues. (And they will become more relevant when we want to expand the Linux Kernel Memory Consistency Model to cover ordinary accesses and data races.) Alan