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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Jul 2012 03:32:19 +0000 (04:32 +0100)
commit90f81e29765bd976bf083b239ad04e7f64ab5269
tree56796f27eceb366f9b348ebad359d555d86ef981
parent1935549ba38cf30ebe8748ccb88fb99d009241d4
tcm_fc: Resolve suspicious RCU usage warnings

commit 863555be0c81558b1af277addcf68acb8f778860 upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/target/tcm_fc/tfc_sess.c