scsi: core: Add new flag BLIST_IGN_MEDIA_CHANGE
authorMartin Kepplinger <martin.kepplinger@puri.sm>
Sun, 4 Jul 2021 07:54:01 +0000 (09:54 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 22 Jul 2021 03:43:48 +0000 (23:43 -0400)
commitf591a2e0548da88130c7b1c79f1f735273adc683
tree2c63603723f88b1918ff6fe6ef8a89832464612c
parente15f669cd996b85bb07b0e787fa78806477bf211
scsi: core: Add new flag BLIST_IGN_MEDIA_CHANGE

Add a new flag for devices that erroneously establish MEDIUM MAY HAVE
CHANGED unit attentions. Drivers can set this flag to make the SCSI
layer ignore media change events during resume.

[mkp: add "ignore" and add corresponding flag to struct scsi_device]

Link: https://lore.kernel.org/r/20210704075403.147114-2-martin.kepplinger@puri.sm
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_scan.c
include/scsi/scsi_device.h
include/scsi/scsi_devinfo.h