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)
commitee480683d975973e3ff679850871e00e011c4a96
treea7c5d09f34b8f606fb3f709eb15615513d5981db
parent29f4c090079f442ea2723d292e4e64f0b6ac1f27
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