From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933461AbcECNH0 (ORCPT ); Tue, 3 May 2016 09:07:26 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:60472 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932976AbcECNHY (ORCPT ); Tue, 3 May 2016 09:07:24 -0400 X-IBM-Helo: d03dlp01.boulder.ibm.com X-IBM-MailFrom: paulmck@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;target-devel@vger.kernel.org Date: Tue, 3 May 2016 06:07:22 -0700 From: "Paul E. McKenney" To: Christoph Hellwig Cc: Muhammad Falak R Wani , "Nicholas A. Bellinger" , target-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] target: use RCU_INIT_POINTER() when NULLing. Message-ID: <20160503130722.GB3800@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <1462107122-9562-1-git-send-email-falakreyaz@gmail.com> <20160501170120.GA15010@infradead.org> <20160501195313.GL3686@linux.vnet.ibm.com> <20160502141023.GA1187@linux.vnet.ibm.com> <20160502175738.GA24455@linux.vnet.ibm.com> <20160502175950.GA16580@infradead.org> <20160502180644.GF3512@linux.vnet.ibm.com> <20160503084520.GC31363@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160503084520.GC31363@infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16050313-0021-0000-0000-00004AE31766 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 03, 2016 at 01:45:20AM -0700, Christoph Hellwig wrote: > On Mon, May 02, 2016 at 11:06:44AM -0700, Paul E. McKenney wrote: > > And for v. But how do I do that without C++ templates? > > > > Also, does __builtin_constant_p() work reliably on a parameter? > > Especially when the compiler decides not to do the inlining? > > Yeah, it's going to be a pain indeed, guess that's why it hasn't been > done before.. Speaking of pain and things that haven't been done before, would you be interested in being in the first group to review an attempt to formalize memory-barriers.txt? Thanx, Paul