]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 15:47:49 +0000 (08:47 -0700)
commite69325eb5e413816e25d3b8599f67644f4f49698
tree54a2b2579ee2eb795f1a6ee68b70983f7a4a9a69
parent41318b9db0e59e0ffc6e627251c8640d3307fc0f
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/tcm_fc/tfc_sess.c