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-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux