Re: mount hanging 2.4.12

Ed Tomlinson (tomlins@CAM.ORG)
Sun, 14 Oct 2001 11:55:20 -0400


On October 14, 2001 09:48 am, Chris Mason wrote:
> On Sunday, October 14, 2001 01:46:19 AM -0400 Alexander Viro
>
> <viro@math.psu.edu> wrote:
> > On Sun, 14 Oct 2001, Alexander Viro wrote:
> >> Deadlocks on lock_super(). I don't see any changes in that
> >> area, though...
> >
> > Erm, wait... What patches do you have applied? After a second look
> > at your objdump it seems that you've got spinlocks turned into
> > semaphores. What the hell is going on there?
>
> Ed, does this hang happen without the new reiserfs snapshot locking patch
> applied?

Hi with the vfs locking patch removed it works.

oscar# mount /fuji
usb-uhci.c: interrupt, status 3, frame# 1622
SCSI device sda: 131072 512-byte hdwr sectors (67 MB)
sda: Write Protect is on
sda: sda1
oscar# ls /fuji
dcim
oscar# umount /fuji
oscar# umount /fuji
umount: /fuji: not mounted
oscar# mount /fuji
usb-uhci.c: interrupt, status 2, frame# 1448
I/O error: dev 08:01, sector 0
FAT: unable to read boot sector
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
SCSI device sda: 131072 512-byte hdwr sectors (67 MB)
sda: Write Protect is on
sda: sda1
oscar# cat /proc/mounts
/dev/root.old /initrd ext2 rw 0 0
/dev/root / reiserfs rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/lv/misc /misc reiserfs rw 0 0
/dev/hda2 /boot ext2 rw 0 0
/dev/hda1 /w98 vfat ro 0 0
none /proc/bus/usb usbdevfs rw 0 0
tmpfs /tmp tmpfs rw 0 0
/dev/hda4 /root2 ext2 ro 0 0
oscar# mount /fuji
oscar# ls /fuji
dcim
oscar#

Chris, what I suspect is happening is that the mount with the error leaves
the sem locked. After this any mount commant hangs - not just ones for the
USB card read (ie. loop mount to build an initrd fails too..)

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