Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932817AbaJ2MmS (ORCPT ); Wed, 29 Oct 2014 08:42:18 -0400 Received: from e38.co.us.ibm.com ([32.97.110.159]:57372 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932653AbaJ2MmR (ORCPT ); Wed, 29 Oct 2014 08:42:17 -0400 Date: Wed, 29 Oct 2014 05:42:03 -0700 From: "Paul E. McKenney" To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, dvhart@linux.intel.com, fweisbec@gmail.com, oleg@redhat.com, bobby.prani@gmail.com Subject: Re: [PATCH tip/core/rcu 9/9] rcu: Provide counterpart to rcu_dereference() for non-RCU situations Message-ID: <20141029124203.GK5718@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20141028220944.GA26114@linux.vnet.ibm.com> <1414534202-27312-1-git-send-email-paulmck@linux.vnet.ibm.com> <1414534202-27312-9-git-send-email-paulmck@linux.vnet.ibm.com> <20141029105704.GY3337@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141029105704.GY3337@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14102912-0029-0000-0000-0000053D4D07 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 29, 2014 at 11:57:04AM +0100, Peter Zijlstra wrote: > On Tue, Oct 28, 2014 at 03:10:02PM -0700, Paul E. McKenney wrote: > > From: "Paul E. McKenney" > > > > Although rcu_dereference() and friends can be used in situations where > > object lifetimes are being managed by something other than RCU, the > > resulting sparse and lockdep-RCU noise can be annoying. This commit > > therefore supplies a lockless_dereference(), which provides the > > protection for dereferences without the RCU-related debugging noise. > > > > Reported-by: Al Viro > > Signed-off-by: Paul E. McKenney > > --- > > > +#define lockless_dereference(p) \ > > +({ \ > > + typeof(p) _________p1 = ACCESS_ONCE(p); \ > > + smp_read_barrier_depends(); /* Dependency order vs. p above. */ \ > > + (_________p1); \ > > +}) > > Should we not have at least a single user along with this? And we do. In fact, Al Viro has pulled this into his vfs.git tree and so I will be dropping this patch in favor of his. Thanx, Paul -- 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/