tcm_fc: rcu_deref outside rcu lock/unlock section
authorDenis Efremov <yefremov.denis@gmail.com>
Sat, 18 Aug 2012 12:10:31 +0000 (16:10 +0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 20 Aug 2012 21:52:15 +0000 (14:52 -0700)
commit08a16208c8cb2ce1f79fea24f21dd7a8df4f12b6
tree8df3946aff29d4dcbdbddb42296388a3486c1b6e
parent6de7145ca3db231a84b7516a6cb25878da6ebb19
tcm_fc: rcu_deref outside rcu lock/unlock section

Use rcu_dereference_protected in order to prevent lockdep
complaint. Sequel of the patch 863555be

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Denis Efremov <yefremov.denis@gmail.com>
Acked-by: Mark D. Rustad <mark.d.rustad@intel.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/tcm_fc/tfc_sess.c