Re: mount hanging 2.4.12

Chris Mason (mason@suse.com)
Sun, 14 Oct 2001 12:41:05 -0400


On Sunday, October 14, 2001 12:32:33 PM -0400 Alexander Viro
<viro@math.psu.edu> 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...

-chris

-
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/