Re: remount-ro & umount & quota interaction
From: Michael Tokarev
Date: Thu Feb 07 2008 - 05:50:25 EST
Jan Kara wrote:
[deadlock after remount-ro followed with umount when
quota is enabled]
> Of course, thanks for report :). The problem is we allow remounting
> read only which we should refuse when quota is enabled. I'll fix that in
> a minute.
Hmm. While that will prevent the lockup, maybe it's better to
perform an equivalent of quotaoff on mount-ro instead? Or even
do something more useful, like flush the quota stuff like the
rest of the filesystem is flushed to disk, so that on umount,
quota will not stay on the way...
I mean, why it locks in the first place? Quota subsystem trying
to write something into an read-only filesystem? If so, WHY it
is trying to do that on umount instead on a remount-ro?
Thanks!
/mjt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/