linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Pranith Kumar <bobby.prani@gmail.com>
Cc: Alasdair Kergon <agk@redhat.com>,
	Mike Snitzer <snitzer@redhat.com>,
	"maintainer:DEVICE-MAPPER (LVM)" <dm-devel@redhat.com>,
	Neil Brown <neilb@suse.de>,
	linux-raid@vger.kernel.org,
	open list <linux-kernel@vger.kernel.org>,
	josh@joshtriplett.org
Subject: Re: [PATCH] dm: sparse: Annotate field with __rcu for checking
Date: Sun, 28 Sep 2014 00:34:10 -0700	[thread overview]
Message-ID: <20140928073409.GC5015@linux.vnet.ibm.com> (raw)
In-Reply-To: <1411671049-20441-1-git-send-email-bobby.prani@gmail.com>

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 <bobby.prani@gmail.com>

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
> 

      reply	other threads:[~2014-09-28  7:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-25 18:50 [PATCH] dm: sparse: Annotate field with __rcu for checking Pranith Kumar
2014-09-28  7:34 ` Paul E. McKenney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140928073409.GC5015@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=agk@redhat.com \
    --cc=bobby.prani@gmail.com \
    --cc=dm-devel@redhat.com \
    --cc=josh@joshtriplett.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=snitzer@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).