summaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc/tcm_fc.h
diff options
context:
space:
mode:
authorMark Rustad <mark.d.rustad@intel.com>2012-08-01 14:51:53 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2012-08-16 17:33:46 -0700
commit1fa8f4504130adc34a071a29170f570102136835 (patch)
treecec8b478dcb3ac66bea69347e0b7cf263d67c9d3 /drivers/target/tcm_fc/tcm_fc.h
parent101998f6fcd680ed12d85633b81504feb1cb0667 (diff)
downloadop-kernel-dev-1fa8f4504130adc34a071a29170f570102136835.zip
op-kernel-dev-1fa8f4504130adc34a071a29170f570102136835.tar.gz
tcm_fc: Avoid debug overhead when not debugging
Stop doing a pile of work related to debugging messages when the ft_debug_logging flag is not set. Use unlikely to add the check in a way that the check can be inlined without inlining the whole thing. Signed-off-by: Mark Rustad <mark.d.rustad@intel.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/tcm_fc/tcm_fc.h')
-rw-r--r--drivers/target/tcm_fc/tcm_fc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/tcm_fc/tcm_fc.h b/drivers/target/tcm_fc/tcm_fc.h
index c5eb3c3..eea6935 100644
--- a/drivers/target/tcm_fc/tcm_fc.h
+++ b/drivers/target/tcm_fc/tcm_fc.h
@@ -131,6 +131,7 @@ extern struct list_head ft_lport_list;
extern struct mutex ft_lport_lock;
extern struct fc4_prov ft_prov;
extern struct target_fabric_configfs *ft_configfs;
+extern unsigned int ft_debug_logging;
/*
* Fabric methods.
OpenPOWER on IntegriCloud