* [PATCH] dm: sparse: Annotate field with __rcu for checking
@ 2014-09-25 18:50 Pranith Kumar
2014-09-28 7:34 ` Paul E. McKenney
0 siblings, 1 reply; 2+ messages in thread
From: Pranith Kumar @ 2014-09-25 18:50 UTC (permalink / raw)
To: Alasdair Kergon, Mike Snitzer, maintainer:DEVICE-MAPPER LVM,
Neil Brown, linux-raid, open list
Cc: paulmck, josh
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>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dm: sparse: Annotate field with __rcu for checking
2014-09-25 18:50 [PATCH] dm: sparse: Annotate field with __rcu for checking Pranith Kumar
@ 2014-09-28 7:34 ` Paul E. McKenney
0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2014-09-28 7:34 UTC (permalink / raw)
To: Pranith Kumar
Cc: Alasdair Kergon, Mike Snitzer, maintainer:DEVICE-MAPPER (LVM),
Neil Brown, linux-raid, open list, josh
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-28 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).