tcm_fc: Resolve suspicious RCU usage warnings
authorMark Rustad <mark.d.rustad@intel.com>
Tue, 26 Jun 2012 22:57:30 +0000 (15:57 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 6 Jul 2012 19:52:09 +0000 (12:52 -0700)
commit863555be0c81558b1af277addcf68acb8f778860
tree5fd9df950b9397f1b265d20a53fbd9bec72ef4d9
parent5134de2815ac723ecfba4a1c7b2a90fa4d8dcfd9
tcm_fc: Resolve suspicious RCU usage warnings

Use rcu_dereference_protected to tell rcu that the ft_lport_lock
is held during ft_lport_create. This resolved "suspicious RCU usage"
warnings when debugging options are turned on.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/tcm_fc/tfc_sess.c