]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
dm: sparse: Annotate field with __rcu for checking
authorPranith Kumar <bobby.prani@gmail.com>
Tue, 28 Oct 2014 22:09:57 +0000 (15:09 -0700)
committerMike Snitzer <snitzer@redhat.com>
Mon, 10 Nov 2014 20:25:29 +0000 (15:25 -0500)
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>
drivers/md/dm.c

index c5e14eee8c76a7a2a4201d095b3a89c552942183..16a806a99b99156bd9e53e8b5b8316a5ba2c4657 100644 (file)
@@ -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;