[PATCH] [XFS] Warn on transaction in flight on read-only remount
Felix Blyakher
felixb at sgi.com
Thu Jan 22 00:34:46 CST 2009
On Jan 22, 2009, at 12:27 AM, Christoph Hellwig wrote:
> On Thu, Jan 22, 2009 at 12:10:15AM -0600, Felix Blyakher wrote:
>> [resending after fixing xfs mailing list on oss]
>>
>> Just wanted to point out to discussion on this topic:
>>
>> http://oss.sgi.com/archives/xfs/2008-12/msg00019.html
>>
>> I merely took a suggestion from it, and put it in a patch.
>
> Did you actually test it? WARN_ON has an inverted sense over
> ASSERT/ASSERT_ALWAYS, so this would trigger all the time.
Oops. Sure. Thanks for noticing it.
>
>>> + /* Just warn here till VFS can correctly support
>>> + * read-only remount without racing.
>>> + */
>
> Also this should be:
>
> /*
> * ...
Noted.
>
> I also have a VFS -level patch somewhere to prevent further writers to
> occur during a remount in a rather hacky way, but I'd rather have a
> testcase to reproduce this reliably before sending it to Al.
Sorry, I don't have a reproducible test case.
Just thought to prevent panic for now.
I'll repost the patch tomorrow.
Felix
More information about the xfs
mailing list