]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit535139322774b83bbbd6200426c72e9955b8ea69
tree2c63603723f88b1918ff6fe6ef8a89832464612c
parentced1879b35112d3e7330ff6d549cc8b627450dbc
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