summaryrefslogtreecommitdiff
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorPranith Kumar <bobby.prani@gmail.com>2014-10-28 15:09:57 -0700
committerMike Snitzer <snitzer@redhat.com>2014-11-10 15:25:29 -0500
commit6fa9952097747f71c5077f3e14ce3f8adee6f778 (patch)
tree2e2477e5ee7319be5e42f8698eaaa8f97b70144d /drivers/md/dm.c
parent33423974bfc1c61193df765078f0466fece7021e (diff)
downloadlwn-6fa9952097747f71c5077f3e14ce3f8adee6f778.tar.gz
lwn-6fa9952097747f71c5077f3e14ce3f8adee6f778.zip
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 <bobby.prani@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index c5e14eee8c76..16a806a99b99 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;
struct list_head table_devices;
struct mutex table_devices_lock;