Re: [PATCH] sr: Fix get the error media event code

From: Martin K. Petersen
Date: Fri Jun 18 2021 - 23:39:42 EST


On Fri, 11 Jun 2021 17:44:02 +0800, ManYi Li wrote:

> Eject the specified slot or media through a mechanical switch on the Drive,
> med->media_event_code is 3 not 1 in the sr_get_events().
>
> If disk_flush_events() and sr_block_open() are called,
> clearing is 1 or 3 in the sr_check_events(),then it report
> DISK_EVENT_MEDIA_CHANGE not DISK_EVENT_EJECT_REQUEST.
>
> [...]

Applied to 5.13/scsi-fixes, thanks!

[1/1] sr: Fix get the error media event code
https://git.kernel.org/mkp/scsi/c/7dd753ca59d6

--
Martin K. Petersen Oracle Linux Engineering