From: Christoph Hellwig <hch@infradead.org>
To: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Cc: linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org,
Artem Bityutskiy <dedekind1@gmail.com>,
Christoph Hellwig <hch@infradead.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Richard Weinberger <richard@nod.at>
Subject: Re: [HACK] fs/super.c: sync ro remount after blocking writers
Date: Mon, 3 Feb 2014 02:23:03 -0800 [thread overview]
Message-ID: <20140203102303.GB11829@infradead.org> (raw)
In-Reply-To: <1391095614-21554-1-git-send-email-andrew.ruder@elecsyscorp.com>
On Thu, Jan 30, 2014 at 09:26:54AM -0600, Andrew Ruder wrote:
> Move sync_filesystem() after sb_prepare_remount_readonly(). If writers
> sneak in anywhere from sync_filesystem() to sb_prepare_remount_readonly()
> it can cause inodes to be dirtied and writeback to occur well after
> sys_mount() has completely successfully.
>
> This was spotted by corrupted ubifs filesystems on reboot, but appears
> that it can cause issues with any filesystem using writeback.
>From the link that Richard posted it seems like you have a testcase.
Can you please integrate it into xfstests so that we can properly
regression test for this issue from now on?
next prev parent reply other threads:[~2014-02-03 10:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-30 15:26 [HACK] fs/super.c: sync ro remount after blocking writers Andrew Ruder
2014-01-31 8:20 ` Richard Weinberger
2014-02-03 10:23 ` Christoph Hellwig [this message]
2014-02-28 9:25 ` Richard Weinberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140203102303.GB11829@infradead.org \
--to=hch@infradead.org \
--cc=andrew.ruder@elecsyscorp.com \
--cc=dedekind1@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).