diff options
author | 2025-01-20 21:49:24 +0200 | |
---|---|---|
committer | 2025-02-03 17:43:31 -0500 | |
commit | 341128dfe10a7c8681d86e81b5bc63902da644ef (patch) | |
tree | 1eaa84acc9d5cbe5f1f1c2d5af56bf5fc74ba82b /scripts/lib/kdoc/kdoc_re.py | |
parent | scsi: core: Add counters for New Media and Power On/Reset UNIT ATTENTIONs (diff) | |
download | wireguard-linux-341128dfe10a7c8681d86e81b5bc63902da644ef.tar.xz wireguard-linux-341128dfe10a7c8681d86e81b5bc63902da644ef.zip |
scsi: st: Modify st.c to use the new scsi_error counters
Compare the stored values of por_ctr and new_media_ctr against the values
in the device struct. In case of mismatch, the Unit Attention corresponding
to the counter has happened. This is a safeguard against another ULD
catching the Unit Attention sense data.
Macros scsi_get_ua_new_media_ctr and scsi_get_ua_por_ctr are added to read
the current values of the counters.
Signed-off-by: Kai Mäkisara <Kai.Makisara@kolumbus.fi>
Link: https://lore.kernel.org/r/20250120194925.44432-4-Kai.Makisara@kolumbus.fi
Reviewed-by: John Meneghini <jmeneghi@redhat.com>
Tested-by: John Meneghini <jmeneghi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions