dm: Use rcu_dereference() for accessing rcu pointer
authorPranith Kumar <bobby.prani@gmail.com>
Tue, 28 Oct 2014 22:09:56 +0000 (15:09 -0700)
committerMike Snitzer <snitzer@redhat.com>
Mon, 10 Nov 2014 20:25:29 +0000 (15:25 -0500)
commit33423974bfc1c61193df765078f0466fece7021e
tree7be12b81b13b978cda2f483a875c39a4def34dab
parent42d6a8ce3c3f70bf77a40ace385f59e1b5b9918f
dm: Use rcu_dereference() for accessing rcu pointer

The map field in 'struct mapped_device' is an rcu pointer. Use rcu_dereference()
while accessing it.

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