]> git.baikalelectronics.ru Git - kernel.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)
commitaa72db1fd1bf7b723fe16bcbf9bf6007e7787d5a
treed710dc3220024b8215cb2531fc55a122ebaba07c
parentca200dcc41c4c53f8c583f8540a1a106a64218de
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