]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target: Add counters for ABORT_TASK success + failure
authorNicholas Bellinger <nab@daterainc.com>
Thu, 19 Jan 2017 23:45:57 +0000 (15:45 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 27 Feb 2017 00:21:06 +0000 (16:21 -0800)
commitc87ba9c49c1fa86261448b09c5f1b2223bf7efd9
treed710dc3220024b8215cb2531fc55a122ebaba07c
parent17c61ad66f2e09a9014ab2d4e1f04c8294427db1
target: Add counters for ABORT_TASK success + failure

This patch introduces two counters for ABORT_TASK success +
failure under:

   /sys/kernel/config/target/core/$HBA/$DEV/statistics/scsi_tgt_dev/

that are useful for diagnosing various backend device latency
and front fabric issues.

Normally when folks see alot of aborts_complete happening,
it means the backend device I/O completion latency is high,
and not returning completions fast enough before host side
timeouts trigger.

And normally when folks see alot of aborts_no_task, it means
completions are being posted by target-core into fabric driver
code, but the responses aren't making it back to the host.

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