Loading
scsi: core: Fix the unit attention counter implementation
scsi_decide_disposition() may call scsi_check_sense(). scsi_decide_disposition() calls are not serialized. Hence, counter updates by scsi_check_sense() must be serialized. Hence this patch that makes the counters updated by scsi_check_sense() atomic. Cc: Kai Mäkisara <Kai.Makisara@kolumbus.fi> Fixes: a5d518cd ("scsi: core: Add counters for New Media and Power On/Reset UNIT ATTENTIONs") Signed-off-by:Bart Van Assche <bvanassche@acm.org> Reviewed-by:
Ewan D. Milne <emilne@redhat.com> Link: https://patch.msgid.link/20251014220244.3689508-1-bvanassche@acm.org Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com>