]> 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)
commitcb5121e12f933554b0692c5c03c02d3821bf7e34
treea7c5d09f34b8f606fb3f709eb15615513d5981db
parent5c39d72cc971fd396171a17910938285ab656450
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