RE: scsi_set_medium_removal timeout issue

From: Zengtao (B)
Date: Wed Nov 28 2018 - 22:13:22 EST


Ping?

>-----Original Message-----
>From: Alan Stern [mailto:stern@xxxxxxxxxxxxxxxxxxx]
>Sent: Wednesday, November 14, 2018 11:35 PM
>To: Martin Petersen <martin.petersen@xxxxxxxxxx>; Zengtao (B)
><prime.zeng@xxxxxxxxxxxxx>
>Cc: jejb@xxxxxxxxxxxxxxxxxx; gregkh@xxxxxxxxxxxxxxxxxxx;
>linux-scsi@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx;
>linux-usb@xxxxxxxxxxxxxxx; usb-storage@xxxxxxxxxxxxxxxxxxxxxxxx
>Subject: RE: scsi_set_medium_removal timeout issue
>
>On Wed, 14 Nov 2018, Zengtao (B) wrote:
>
>> I just enabled the scsi log in the middle of the umount operation,
>> otherwise I can't reproduce the issue when the scsi log is enabled.
>>
>> >from the beginning. In any case, it wasn't what I wanted. I asked
>> >you to post the dmesg log, not the SCSI log.
>>
>> Please refer to the new attachment for dmesg log.
>
>Heh, yes, I see now.
>
>Martin, shouldn't sd_release() call sd_sync_cache() in the same way that
>sd_shutdown() does, before it calls scsi_set_medium_removal()?
>
>Alan Stern