Commit 79e419e5 authored by ManYi Li's avatar ManYi Li Committed by Yang Yingliang
Browse files

scsi: sr: Return appropriate error code when disk is ejected

stable inclusion
from linux-4.19.197
commit b52a404434a93d83b243187c6cf135dd6ba529c8

--------------------------------

[ Upstream commit 7dd753ca ]

Handle a reported media event code of 3. This indicates that the media has
been removed from the drive and user intervention is required to proceed.
Return DISK_EVENT_EJECT_REQUEST in that case.

Link: https://lore.kernel.org/r/20210611094402.23884-1-limanyi@uniontech.com


Signed-off-by: default avatarManYi Li <limanyi@uniontech.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent b35fb004
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment