Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1560169

Re: [PATCH tip/core/rcu 1/6] rcu: Abstract the dynticks momentary-idle operation

Path csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH tip/core/rcu 1/6] rcu: Abstract the dynticks momentary-idle operation
Date Tue, 17 Jan 2017 00:50:01 +0100
Message-ID <t0pcd-7IE-3@gated-at.bofh.it> (permalink)
References <sZslP-3NR-3@gated-at.bofh.it> <sZslQ-3NR-29@gated-at.bofh.it> <t0adb-5uS-7@gated-at.bofh.it> <t0dE6-88J-5@gated-at.bofh.it> <t0kFz-4uU-11@gated-at.bofh.it>
Reply-To paulmck@linux.vnet.ibm.com
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
X-Tm-As-Gconf 00
X-Content-Scanned Fidelis XPS MAILER
X-Cbid 17011623-0004-0000-0000-0000114D1DE7
X-Ibm-Spammodules-Versions BY=3.00006446; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000199; SDB=6.00808579; UDB=6.00393809; IPR=6.00585938; BA=6.00005062; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013943; XFM=3.00000011; UTC=2017-01-16 23:48:17
X-Ibm-Av-Detection SAVI=unused REMOTE=unused XFE=unused
X-Cbparentid 17011623-0005-0000-0000-00007C37A6AF
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2017-01-16_18:,, signatures=0
X-Proofpoint-Spam-Details rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1701160329
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 31
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, dvhart@linux.intel.com, fweisbec@gmail.com, oleg@redhat.com, bobby.prani@gmail.com
X-Original-Date Mon, 16 Jan 2017 15:48:13 -0800
X-Original-Message-ID <20170116234813.GT5238@linux.vnet.ibm.com>
X-Original-References <20170114085406.GA19052@linux.vnet.ibm.com> <1484384085-19444-1-git-send-email-paulmck@linux.vnet.ibm.com> <20170116073951.ipupoxcjnv42dwop@x> <20170116112239.GL5238@linux.vnet.ibm.com> <20170116185704.2cpgih6idiegn7k3@x>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1560169

Show key headers only | View raw


On Mon, Jan 16, 2017 at 10:57:04AM -0800, Josh Triplett wrote:
> On Mon, Jan 16, 2017 at 03:22:39AM -0800, Paul E. McKenney wrote:
> > On Sun, Jan 15, 2017 at 11:39:51PM -0800, Josh Triplett wrote:
> > > On Sat, Jan 14, 2017 at 12:54:40AM -0800, Paul E. McKenney wrote:
> > > > This commit is the first step towards full abstraction of all accesses to
> > > > the ->dynticks counter, implementing the previously open-coded atomic add
> > > > of two in a new rcu_dynticks_momentary_idle() function.  This abstraction
> > > > will ease changes to the ->dynticks counter operation.
> > > > 
> > > > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> > > 
> > > This change has an additional effect not documented in the commit
> > > message: it eliminates the smp_mb__before_atomic and
> > > smp_mb__after_atomic calls.  Can you please document that in the commit
> > > message, and explain why that doesn't cause a problem?
> > 
> > The trick is that the old code used the non-value-returning atomic_add(),
> > which does not imply ordering, hence the smp_mb__before_atomic() and
> > smp_mb__after_atomic() calls.  The new code uses atomic_add_return(),
> > which does return a value, and therefore implies full ordering in and
> > of itself.
> > 
> > How would you like me to proceed?
> 
> With the above explanation added to the commit message:
> 
> Reviewed-by: Josh Triplett <josh@joshtriplett.org>

Done, thank you!

							Thanx, Paul

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH tip/core/rcu 0/6] Dynticks updates for 4.11 "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-14 10:00 +0100
  [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-14 10:00 +0100
    Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended  quiescent state enter/exit operations Josh Triplett <josh@joshtriplett.org> - 2017-01-16 08:50 +0100
      Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended  quiescent state enter/exit operations "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-16 12:40 +0100
        Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended  quiescent state enter/exit operations Josh Triplett <josh@joshtriplett.org> - 2017-01-16 20:30 +0100
          Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended  quiescent state enter/exit operations "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-17 01:20 +0100
    Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended  quiescent state enter/exit operations Peter Zijlstra <peterz@infradead.org> - 2017-01-16 17:50 +0100
      Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended  quiescent state enter/exit operations "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-16 22:10 +0100
        Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended  quiescent state enter/exit operations "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-17 01:10 +0100
  [PATCH tip/core/rcu 4/6] rcu: Abstract extended quiescent state determination "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-14 10:00 +0100
  [PATCH tip/core/rcu 1/6] rcu: Abstract the dynticks momentary-idle operation "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-14 10:00 +0100
    Re: [PATCH tip/core/rcu 1/6] rcu: Abstract the dynticks  momentary-idle operation Josh Triplett <josh@joshtriplett.org> - 2017-01-16 08:50 +0100
      Re: [PATCH tip/core/rcu 1/6] rcu: Abstract the dynticks  momentary-idle operation "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-16 12:30 +0100
        Re: [PATCH tip/core/rcu 1/6] rcu: Abstract the dynticks  momentary-idle operation Josh Triplett <josh@joshtriplett.org> - 2017-01-16 20:00 +0100
          Re: [PATCH tip/core/rcu 1/6] rcu: Abstract the dynticks  momentary-idle operation "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-17 00:50 +0100
  Re: [PATCH tip/core/rcu 0/6] Dynticks updates for 4.11 Josh Triplett <josh@joshtriplett.org> - 2017-01-16 09:00 +0100
  Re: [PATCH tip/core/rcu 0/6] Dynticks updates for 4.11 "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-18 03:50 +0100
    [PATCH v2 tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-18 03:50 +0100
      Re: [PATCH v2 tip/core/rcu 3/6] rcu: Abstract dynticks extended  quiescent state enter/exit operations Josh Triplett <josh@joshtriplett.org> - 2017-01-21 21:50 +0100
        Re: [PATCH v2 tip/core/rcu 3/6] rcu: Abstract dynticks extended  quiescent state enter/exit operations "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-23 20:50 +0100
    Re: [PATCH v3 tip/core/rcu 0/6] Dynticks updates for 4.11 "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-24 22:50 +0100
      [PATCH v3 tip/core/rcu 4/6] rcu: Abstract extended quiescent state determination "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-24 22:50 +0100
      [PATCH v3 tip/core/rcu 1/6] rcu: Abstract the dynticks momentary-idle operation "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-01-24 22:50 +0100

csiph-web