tcm_fc: Avoid debug overhead when not debugging
authorMark Rustad <mark.d.rustad@intel.com>
Wed, 1 Aug 2012 21:51:53 +0000 (14:51 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 17 Aug 2012 00:33:46 +0000 (17:33 -0700)
commit1fa8f4504130adc34a071a29170f570102136835
treecec8b478dcb3ac66bea69347e0b7cf263d67c9d3
parent101998f6fcd680ed12d85633b81504feb1cb0667
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>
drivers/target/tcm_fc/tcm_fc.h
drivers/target/tcm_fc/tfc_cmd.c