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-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to