RE: scsi_set_medium_removal timeout issue

2018-12-04 Thread Alan Stern
om; gre...@linuxfoundation.org; > >linux-s...@vger.kernel.org; linux-ker...@vger.kernel.org; > >linux-usb@vger.kernel.org; usb-stor...@lists.one-eyed-alien.net > >Subject: RE: scsi_set_medium_removal timeout issue > > > >On Wed, 14 Nov 2018, Zengtao (B) wrote: &g

RE: scsi_set_medium_removal timeout issue

2018-11-28 Thread Zengtao (B)
ernel.org; >linux-usb@vger.kernel.org; usb-stor...@lists.one-eyed-alien.net >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&#x

RE: scsi_set_medium_removal timeout issue

2018-11-14 Thread Alan Stern
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

RE: scsi_set_medium_removal timeout issue

2018-11-13 Thread Zengtao (B)
er...@vger.kernel.org; linux-usb@vger.kernel.org; >usb-stor...@lists.one-eyed-alien.net >Subject: RE: scsi_set_medium_removal timeout issue > >On Mon, 12 Nov 2018, Zengtao (B) wrote: > >> >> >Something is wrong here. Before sending PREVENT-ALLOW >MEDIUM >> >

RE: scsi_set_medium_removal timeout issue

2018-11-12 Thread Alan Stern
On Mon, 12 Nov 2018, Zengtao (B) wrote: > >> >Something is wrong here. Before sending PREVENT-ALLOW MEDIUM > >> >REMOVAL, the host should issue SYNCHRONIZE CACHE. This will force > >> >fsg_lun_fsync_sub to run, and the host should allow a long timeout > >> >for this command. Then when PREVENT-A

RE: scsi_set_medium_removal timeout issue

2018-11-12 Thread Zengtao (B)
er...@vger.kernel.org; linux-usb@vger.kernel.org; >usb-stor...@lists.one-eyed-alien.net >Subject: RE: scsi_set_medium_removal timeout issue > >On Wed, 31 Oct 2018, Zengtao (B) wrote: > >> Hi: >> >> >-Original Message- >> >From: Alan Stern [mailto

RE: scsi_set_medium_removal timeout issue

2018-10-31 Thread Alan Stern
t; >gre...@linuxfoundation.org; linux-s...@vger.kernel.org; > >linux-ker...@vger.kernel.org; linux-usb@vger.kernel.org; > >usb-stor...@lists.one-eyed-alien.net > >Subject: Re: scsi_set_medium_removal timeout issue > > > >On Tue, 30 Oct 2018, Zengtao (B) wrote: >

RE: scsi_set_medium_removal timeout issue

2018-10-30 Thread Zengtao (B)
ger.kernel.org; linux-usb@vger.kernel.org; >usb-stor...@lists.one-eyed-alien.net >Subject: Re: scsi_set_medium_removal timeout issue > >On Tue, 30 Oct 2018, Zengtao (B) wrote: > >> Hi >> >> I have recently met a scsi_set_medium_removal timeout issue, and it's &

Re: scsi_set_medium_removal timeout issue

2018-10-30 Thread Alan Stern
On Tue, 30 Oct 2018, Zengtao (B) wrote: > Hi > > I have recently met a scsi_set_medium_removal timeout issue, and it's related > to both SCSI and USB MASS storage. > Since i am not an expert in either scsi or usb mass storage, i am writing to > report > the issue a

RE: scsi_set_medium_removal timeout issue

2018-10-30 Thread Zengtao (B)
eyed-alien.net; linux-ker...@vger.kernel.org; >linux-s...@vger.kernel.org; linux-usb@vger.kernel.org >Subject: Re: scsi_set_medium_removal timeout issue > >On Di, 2018-10-30 at 08:28 +, Zengtao (B) wrote: >> Hi > >> For the issue itself, there is my obser

Re: scsi_set_medium_removal timeout issue

2018-10-30 Thread Oliver Neukum
On Di, 2018-10-30 at 08:28 +, Zengtao (B) wrote: > Hi > For the issue itself, there is my observation: > In the step 4, the Host will issue an PREVENT_ALLOW_MEDIUM_REMOVAL scsi > command. > and and timeout happens due to the device 's very slow fsg_lun_fsync_sub. > I found there are two me

scsi_set_medium_removal timeout issue

2018-10-30 Thread Zengtao (B)
Hi I have recently met a scsi_set_medium_removal timeout issue, and it's related to both SCSI and USB MASS storage. Since i am not an expert in either scsi or usb mass storage, i am writing to report the issue and ask for a solution from you guys. My test scenario is as follow: 1.Linux