summaryrefslogtreecommitdiff
path: root/include/scsi
diff options
context:
space:
mode:
authorWu Bo <wubo40@huawei.com>2022-09-20 17:32:19 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2022-09-25 13:25:34 -0400
commit48517eefb20ec2d6595ebd77ae11f34b3540cd78 (patch)
treee801283900a81bd7e19aaa53368c246d5214c193 /include/scsi
parent592642e6b11e620e4b43189f8072752429fc8dc3 (diff)
scsi: core: Add I/O timeout count for SCSI device
Currently struct scsi_device maintains counters for requests, completions, and errors but is missing a counter for timeouts. For better tracking of timeouts, add a suitable counter. Link: https://lore.kernel.org/r/1663666339-17560-1-git-send-email-wubo40@huawei.com Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Wu Bo <wubo40@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 3113471ca375..78039d1ec405 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -231,6 +231,7 @@ struct scsi_device {
atomic_t iorequest_cnt;
atomic_t iodone_cnt;
atomic_t ioerr_cnt;
+ atomic_t iotmo_cnt;
struct device sdev_gendev,
sdev_dev;