summaryrefslogtreecommitdiff
path: root/drivers/scsi/megaraid
diff options
context:
space:
mode:
authorLi Manyi <limanyi@uniontech.com>2021-07-26 14:49:13 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-07-30 04:58:35 +0300
commit5c04243a56a7977185b00400e59ca7e108004faf (patch)
tree6f25e677e5d0f06d04dd5963f885b145bd92fddd /drivers/scsi/megaraid
parenta264cf5e81c78e2b9918b8b9ef2ace9dde1850df (diff)
downloadlinux-5c04243a56a7977185b00400e59ca7e108004faf.tar.xz
scsi: sr: Return correct event when media event code is 3
Media event code 3 is defined in the MMC-6 spec as follows: "MediaRemoval: The media has been removed from the specified slot, and the Drive is unable to access the media without user intervention. This applies to media changers only." This indicated that treating the condition as an EJECT_REQUEST was appropriate. However, doing so had the unfortunate side-effect of causing the drive tray to be physically ejected on resume. Instead treat the event as a MEDIA_CHANGE request. Fixes: 7dd753ca59d6 ("scsi: sr: Return appropriate error code when disk is ejected") Link: https://bugzilla.kernel.org/show_bug.cgi?id=213759 Link: https://lore.kernel.org/r/20210726114913.6760-1-limanyi@uniontech.com Signed-off-by: Li Manyi <limanyi@uniontech.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/megaraid')
0 files changed, 0 insertions, 0 deletions