[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CAD89104-98EE-4205-8C5B-3F0F60514A0B@mit.edu>
Date: Thu, 18 Nov 2010 05:51:49 -0500
From: Theodore Tso <tytso@....EDU>
To: Nick Piggin <npiggin@...nel.dk>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Eric Sandeen <sandeen@...hat.com>, Jan Kara <jack@...e.cz>,
linux-fsdevel@...r.kernel.org, linux-ext4@...r.kernel.org,
linux-btrfs@...r.kernel.org
Subject: Re: [patch] fix up lock order reversal in writeback
On Nov 18, 2010, at 3:18 AM, Nick Piggin wrote:
> s_count just prevents it from going away, but s_umount is still needed
> to keep umount, remount,ro, freezing etc activity away. I don't think
> there is an easy way to do it.
Hmm.... what about encoding the fact that we are in the process of unmounting the file system as a flag to keep remount, freeing, etc. away? The equivalent of the inode's I_FREEING flag?
After all, it's not like we want freeze to wait until the umount is finished, and then continue on its merry way with the remount operation. We want it to fail, because we're unmounting the file system. So maybe the real problem is a mutex really isn't the right abstraction?
-- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists