]> git.baikalelectronics.ru Git - kernel.git/commit
target: Convert se_device statistics to atomic_long_t
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 14 Nov 2013 02:34:55 +0000 (18:34 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 14 Nov 2013 02:34:55 +0000 (18:34 -0800)
commit229f0ec6387ae276009130e4f5afe1e5c14726c1
treea7c5d09f34b8f606fb3f709eb15615513d5981db
parent5e9cc9c4eef0408ed6e64d8d24371e2cac553e04
target: Convert se_device statistics to atomic_long_t

This patch converts the handful of se_device statistics to type
atomic_long_t, instead of using se_device->stats_lock when
incrementing these values.

More importantly, go ahead and drop the spinlock usage within
transport_lookup_cmd_lun() fast-path code.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_stat.c
drivers/target/target_core_tmr.c
include/target/target_core_base.h