summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorPranith Kumar <bobby.prani@gmail.com>2014-10-29 01:09:57 +0300
committerMike Snitzer <snitzer@redhat.com>2014-11-10 23:25:29 +0300
commit6fa9952097747f71c5077f3e14ce3f8adee6f778 (patch)
tree2e2477e5ee7319be5e42f8698eaaa8f97b70144d /drivers/md
parent33423974bfc1c61193df765078f0466fece7021e (diff)
downloadlinux-6fa9952097747f71c5077f3e14ce3f8adee6f778.tar.xz
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')
-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;