dm: sparse: Annotate field with __rcu for checking
Subsystems (2)
PATCH 1/1 dm: sparse: Annotate field with __rcu for checking
Annotate the map field with __rcu since this is a rcu pointer which is checked by sparse.
Signed-off-by Pranith Kumar <[email protected]>
--- drivers/md/dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm.c +1 -1
@@ -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;
Signature · 1 line
2.1.0
Paul E. McKenney
AppliedQuoted 4 lines · Pranith Kumar
Annotate the map field with
__rcusince this is a rcu pointer which is checked by sparse.Signed-off-by Pranith Kumar <[email protected]>
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
Quoted 20 lines
--- drivers/md/dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/md/dm.c +1
-1@@ -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;Signature · 1 line
2.1.0