scsi: core: Add I/O timeout count for SCSI device
authorWu Bo <wubo40@huawei.com>
Tue, 20 Sep 2022 09:32:19 +0000 (17:32 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 25 Sep 2022 17:25:34 +0000 (13:25 -0400)
commit48517eefb20ec2d6595ebd77ae11f34b3540cd78
treee801283900a81bd7e19aaa53368c246d5214c193
parent592642e6b11e620e4b43189f8072752429fc8dc3
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>
drivers/scsi/scsi_error.c
drivers/scsi/scsi_sysfs.c
include/scsi/scsi_device.h