From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751985AbaI1HeR (ORCPT ); Sun, 28 Sep 2014 03:34:17 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:51320 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbaI1HeP (ORCPT ); Sun, 28 Sep 2014 03:34:15 -0400 Date: Sun, 28 Sep 2014 00:34:10 -0700 From: "Paul E. McKenney" To: Pranith Kumar Cc: Alasdair Kergon , Mike Snitzer , "maintainer:DEVICE-MAPPER (LVM)" , Neil Brown , linux-raid@vger.kernel.org, open list , josh@joshtriplett.org Subject: Re: [PATCH] dm: sparse: Annotate field with __rcu for checking Message-ID: <20140928073409.GC5015@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <1411671049-20441-1-git-send-email-bobby.prani@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1411671049-20441-1-git-send-email-bobby.prani@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14092807-6688-0000-0000-00000525CE18 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 25, 2014 at 02:50:43PM -0400, Pranith Kumar wrote: > Annotate the map field with __rcu since this is a rcu pointer which is checked > by sparse. > > Signed-off-by: Pranith Kumar Queued them both, thank you! Josh, given this change, are you OK with my applying your Reviewed-by to the RCU_INIT_POINTER() patch? Thanx, Paul > --- > drivers/md/dm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/md/dm.c b/drivers/md/dm.c > index 32b958d..746411b 100644 > --- a/drivers/md/dm.c > +++ b/drivers/md/dm.c > @@ -140,7 +140,7 @@ struct mapped_device { > * Use dm_get_live_table{_fast} or take suspend_lock for > * dereference. > */ > - struct dm_table *map; > + struct dm_table __rcu *map; > > unsigned long flags; > > -- > 2.1.0 >