Re: mount hanging 2.4.12

From: Chris Mason (
Date: Sun Oct 14 2001 - 11:41:05 EST

On Sunday, October 14, 2001 12:32:33 PM -0400 Alexander Viro
<> wrote:

> On Sun, 14 Oct 2001, Chris Mason wrote:
>> On Sunday, October 14, 2001 11:55:20 AM -0400 Ed Tomlinson
>> <tomlins@CAM.ORG> wrote:
>> >
>> > 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..)
>> Yup, I see the, I'll send a new patch a little later today.
> Cc: it to me, OK?

Sure, I was holding off on a cc to linux-kernel because I really don't like
it though ;-) This is the LVM locking patch, so before making a snapshot
LVM wants to flush the FS and block new transactions.

LVM does this:
lockfs(dev) ;
make snapshot
unlockfs(dev) ;

This can happen while dev is either mounted or unmounted. If dev was
unmounted when the lockfs was called, I'd like to make sure nobody can
mount it before the unlockfs is done. I did this with a new semaphore in
fs/super.c, but I'd rather find something cleaner...


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Oct 15 2001 - 21:00:54 EST