Re: [linux-usb-devel] Re: BUG: 2.6.14/2.6.15: USB storage/ext2fs uninterruptable sleep

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

 



On Thu, 5 Jan 2006, Roger Leigh wrote:

> > By any chance, does autofs or autofs4 mount your device with -o sync?  
> > Doing that with flash memory devices is a grave mistake -- although it 
> > shouldn't cause the sort of lock-up you described.
> 
> Yes.  I have
> 
> pen-secure  -fstype=ext2,sync,nodev,nosuid,noatime  :/dev/sda2
> 
> in /etc/auto.misc.  Removing the sync option does prevent the lockups.
> I just added it back and it locked up immediately.

Sync for flash devices is generally a bad idea.  Especially with vfat 
filesystems but to some extent with all of them, it causes constant 
rewriting of sectors containing metadata.  Flash memory behaves poorly 
when the same sector gets written over and over again; it tends to slow 
down and eventually wear out completely.

> The usb/usb-storage logs are attached (device mount + command which
> broke it).  Would you like any more information?

The log you provided shows only two commands, both of which completed 
successfully.  Is that really the place where things got hung?  If it is 
then the problem isn't in the USB stack but someplace higher up: the SCSI 
stack, the block layer, or the filesystem layer.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux