]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: core: Add counters for New Media and Power On/Reset UNIT ATTENTIONs
authorKai Mäkisara <Kai.Makisara@kolumbus.fi>
Mon, 20 Jan 2025 19:49:23 +0000 (21:49 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Feb 2025 22:43:31 +0000 (17:43 -0500)
commita5d518cd4e3e592eaa59b888a5d75ad639d554ea
treea07a4dcbac055daa54fe44ebe9583c39112e485a
parent7081dc75df79696d8322d01821c28e53416c932c
scsi: core: Add counters for New Media and Power On/Reset UNIT ATTENTIONs

The purpose of the counters is to enable all ULDs attached to a device to
find out that a New Media or/and Power On/Reset Unit Attentions has/have
been set, even if another ULD catches the Unit Attention as response to a
SCSI command.

The ULDs can read the counters and see if the values have changed from the
previous check.

Signed-off-by: Kai Mäkisara <Kai.Makisara@kolumbus.fi>
Link: https://lore.kernel.org/r/20250120194925.44432-3-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>
drivers/scsi/scsi_error.c
include/scsi/scsi_device.h