md/linear: rcu_dereference outside read-lock section
authorDenis Efremov <yefremov.denis@gmail.com>
Thu, 11 Oct 2012 02:08:02 +0000 (13:08 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:08:02 +0000 (13:08 +1100)
commitbc78c57388e7f447f58e30d60b1505ddaaaf3a7d
tree05257b01ee452d05490de4a2d434163b0838be74
parent02f3939e1a9357b7c370a4a69717cf9c02452737
md/linear: rcu_dereference outside read-lock section

According to the comment in linear_stop function
rcu_dereference in linear_start and linear_stop functions
occurs under reconfig_mutex. The patch represents this
agreement in code and prevents lockdep complaint.

Found by Linux Driver Verification project (linuxtesting.org)

Signed-off-by: Denis Efremov <yefremov.denis@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/linear.c