Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1401896ybi; Sat, 8 Jun 2019 08:57:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvGnWw56rbtWijd1AVIkvzYHLkOzlm0J6RXkq9xmMms/XQUKc+/1UHliNXzjtm21U29S68 X-Received: by 2002:a65:60c2:: with SMTP id r2mr7838738pgv.156.1560009479007; Sat, 08 Jun 2019 08:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560009479; cv=none; d=google.com; s=arc-20160816; b=UX+wl9+5SqNjBtpkR59zbozuKEPgqIbTXmcqj+o7hVN9Nafw+65nF8MbbX19K6s8BK fLoeKOXxXTMS4tuQvwd0rd8ndkVLo5aJKuEwZZdy+t1cfYUj43dsOBuY5efnQrjR4/eO nxDBKHzIhpYrzWzHGXgGemsFD4m0iVgtDA43SvBK8i0Mks5iSSfh/O4XKqOe/TTOAuNr PuHQcjjpJbAFZOerRvMOrn5H396Y+ix4PnJGW9Ht3sRsXJUxTnPzeeq5YxO6Sgqqep5p Q7cnD/ebJYXnWJsmKi6rrd2+Y4xYaJdCShhm1QgbkZsDEwaaUOisgPlFLte8f5SdHIR+ sdSg== 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; bh=djNvxrCZS77flbMF2JpONdduZG6Db3C73DMzMM7XAqo=; b=HWVK4qx+uq1Pgo8ANKoedYwWQFTYlI2TjFk4BIMX0Wooz6tNR4qKr/SQmVUN9vBfJA /JYudWI6/squjuV1eT+dDh6B+Df+7ShbqD6KC+vNPaNt8732DL6+8SJ/t0GjOLYRHiz/ 8CTnw9/ce7Dhi1bXO8N2t5WGbN0t/C2dyaMcITUK7bQeKzm9zNzowUoEQizGqGIALnnA RrMJ+CgNShEdaxO1wj9SyBXoLoMAM+7RWBoJGM1ioBQNWcl4GA1r0aHhtfcaNGnqW4PT yXCXxT4FlDvqvR9n30hi+GC4ruo2FYm4LwuzMX/PkLnrIydNx7IUlyAVWKHrt6X6SRDP e6FA== 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 59si164236plp.90.2019.06.08.08.57.42; Sat, 08 Jun 2019 08:57:58 -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 S1727298AbfFHP4G (ORCPT + 99 others); Sat, 8 Jun 2019 11:56:06 -0400 Received: from netrider.rowland.org ([192.131.102.5]:37605 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727035AbfFHP4F (ORCPT ); Sat, 8 Jun 2019 11:56:05 -0400 Received: (qmail 11733 invoked by uid 500); 8 Jun 2019 11:56:04 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 8 Jun 2019 11:56:04 -0400 Date: Sat, 8 Jun 2019 11:56:04 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: "Paul E. McKenney" cc: Andrea Parri , Boqun Feng , Herbert Xu , Linus Torvalds , Frederic Weisbecker , Fengguang Wu , LKP , LKML , Netdev , "David S. Miller" , Luc Maranget , Jade Alglave Subject: Re: rcu_read_lock lost its compiler barrier In-Reply-To: <20190608151943.GD28207@linux.ibm.com> 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 Sat, 8 Jun 2019, Paul E. McKenney wrote: > On Thu, Jun 06, 2019 at 10:19:43AM -0400, Alan Stern wrote: > > On Thu, 6 Jun 2019, Andrea Parri wrote: > > > > > This seems a sensible change to me: looking forward to seeing a patch, > > > on top of -rcu/dev, for further review and testing! > > > > > > We could also add (to LKMM) the barrier() for rcu_read_{lock,unlock}() > > > discussed in this thread (maybe once the RCU code and the informal doc > > > will have settled in such direction). > > > > Yes. Also for SRCU. That point had not escaped me. > > And it does seem pretty settled. There are quite a few examples where > there are normal accesses at either end of the RCU read-side critical > sections, for example, the one in the requirements diffs below. > > For SRCU, srcu_read_lock() and srcu_read_unlock() have implied compiler > barriers since 2006. ;-) > > Thanx, Paul > > ------------------------------------------------------------------------ > > diff --git a/Documentation/RCU/Design/Requirements/Requirements.html b/Documentation/RCU/Design/Requirements/Requirements.html > index 5a9238a2883c..080b39cc1dbb 100644 > --- a/Documentation/RCU/Design/Requirements/Requirements.html > +++ b/Documentation/RCU/Design/Requirements/Requirements.html > @@ -2129,6 +2129,8 @@ Some of the relevant points of interest are as follows: >
  • Hotplug CPU. >
  • Scheduler and RCU. >
  • Tracing and RCU. > +
  • ------------------------------------^ > +Accesses to User Mamory and RCU. ---------------------^ >
  • Energy Efficiency. >
  • > Scheduling-Clock Interrupts and RCU. > @@ -2521,6 +2523,75 @@ cannot be used. > The tracing folks both located the requirement and provided the > needed fix, so this surprise requirement was relatively painless. > > +

    ----------------------------------^ > +Accesses to User Mamory and RCU

    ---------------------^ Are these issues especially notable for female programmers? :-) Alan