]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit338005df5838dd4cbe6e9eedd72bf4173e2b59ae
tree05257b01ee452d05490de4a2d434163b0838be74
parentc55d509b2eba8e0a1313fd3316aaf0b7072620ed
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