Re: usb-storage: fsync() take too much time when handing ALLOW_MEDIUM_REMOVAL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 27 Oct 2011, Yuping Luo wrote:

>     Removal of  fsg_lun_fsync_sub() can pass my test, however, I found under
> linux host (specifically ubuntu 11.10) there is no SYNCHRONIZE CACHE
> coming when ejecting the mount point, only ALLOW_MEDIUM_REMOVAL().

This sounds like a bug.  James, why doesn't sd_release() send a
SYNCHRONIZE CACHE command before calling scsi_set_medium_removal(), if 
sdkp->WCE is set?  Or why doesn't scsi_set_medium_removal() send the 
SYNCHRONIZE CACHE command itself?

Don't we want to make sure the cached data has been written out before 
the medium is ejected?

Or is this supposed to be handled somewhere else, and if so, where?

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux