diff options
author | Mahesh Rajashekhara <[email protected]> | 2024-08-27 13:54:57 -0500 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2024-08-28 22:10:34 -0400 |
commit | 283dcc1b142ebd60786f8f5e3fbbd53a51035739 (patch) | |
tree | aa8d0cd6869afcf9efe08dfa5671bd116e97c085 /drivers/scsi/libsas/sas_init.c | |
parent | 4c76114932d1d6fad2e72823e7898a3c960cf2a7 (diff) |
scsi: smartpqi: add counter for parity write stream requests
Add sysfs entry to check for write stream requests.
Move existing raid_bypass_cnt into a structure named pqi_raid_io_stats and
add member write_stream_cnt. These two counters are related because write
stream detection is only checked if an I/O request is eligible for bypass
(AIO).
Example usage:
lsscsi
[15:1:0:0] disk Adaptec LOGICAL VOLUME 0129 /dev/sdae
cat /sys/block/sdae/device/ssd_smart_path_enabled
1
^
|
+---- NOTE: here bypass has been enabled on device sdae
To read the counter for parity write stream requests:
cat /sys/block/sdae/device/write_stream_cnt
0x60cd507
Reviewed-by: Scott Benesh <[email protected]>
Reviewed-by: Mike McGowen <[email protected]>
Signed-off-by: Mahesh Rajashekhara <[email protected]>
Co-developed-by: Kevin Barnett <[email protected]>
Signed-off-by: Kevin Barnett <[email protected]>
Signed-off-by: Don Brace <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
0 files changed, 0 insertions, 0 deletions