ManYi Li 3edfd34f13 scsi: sr: Return appropriate error code when disk is ejected
[ Upstream commit 7dd753ca59d6c8cc09aa1ed24f7657524803c7f3 ]

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: ManYi Li <limanyi@uniontech.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-07 08:22:58 -04:00
..
2020-12-30 11:50:53 +01:00
2021-01-06 14:48:38 +01:00
2021-05-11 14:04:12 +02:00
2019-07-11 15:14:01 -07:00
2019-07-11 15:17:41 -07:00
2021-05-11 14:04:10 +02:00
2019-03-02 11:39:54 -08:00
2019-07-11 15:17:41 -07:00
2019-07-11 15:17:41 -07:00
2019-07-11 15:17:41 -07:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2019-07-11 15:14:01 -07:00
2019-06-18 19:46:18 -04:00
2019-07-11 15:17:41 -07:00
2021-05-14 09:44:25 +02:00
2019-07-11 15:14:01 -07:00
2018-12-28 14:48:06 -08:00
2019-08-16 11:33:56 -07:00
2019-08-16 11:33:56 -07:00
2019-07-11 15:14:01 -07:00
2019-07-11 15:14:01 -07:00
2019-11-05 23:17:53 -05:00
2019-08-04 21:41:29 -06:00
2019-07-11 15:14:01 -07:00
2021-05-14 09:44:25 +02:00
2021-05-14 09:44:25 +02:00
2019-07-11 15:14:01 -07:00