Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pranith Kumar and committed by
Mike Snitzer
6fa99520 33423974

+1 -1
+1 -1
drivers/md/dm.c
··· 140 140 * Use dm_get_live_table{_fast} or take suspend_lock for 141 141 * dereference. 142 142 */ 143 - struct dm_table *map; 143 + struct dm_table __rcu *map; 144 144 145 145 struct list_head table_devices; 146 146 struct mutex table_devices_lock;