From: Andrew Morton <akpm@digeo.com>
To: Chris Mason <mason@suse.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
"ext3-users@redhat.com" <ext3-users@redhat.com>
Subject: Re: [patch] fix the ext3 data=journal unmount bug
Date: Fri, 06 Dec 2002 11:45:19 -0800 [thread overview]
Message-ID: <3DF0FE4F.5F473D5E@digeo.com> (raw)
In-Reply-To: 1039203287.9244.97.camel@tiny
Chris Mason wrote:
>
> On Fri, 2002-12-06 at 14:12, Andrew Morton wrote:
> >
> > It won't. There isn't really a sane way of doing this properly unless
> > we do something like:
> >
> > 1) Add a new flag to the superblock
> > 2) Set that flag against all r/w superblocks before starting the sync
> > 3) Use that flag inside the superblock walk.
> >
> > That would provide a reasonable solution, but I don't believe we
> > need to go to those lengths in 2.4, do you?
>
> Grin, I'm partial to changing sync_supers to allow the FS to leave
> s_dirt set in its write_super call.
That doesn't sound like a simplification ;)
> I see what ext3 gains from your current patch in the unmount case, but
> the sync case is really unchanged because of interaction with kupdate.
True. And I'd like /bin/sync to _really_ be synchronous because
I use `reboot -f' all the time. Even though SuS-or-POSIX say that
sync() only needs to _start_ the IO. That's rather silly.
> Other filesystems trying to use the sync_fs() call might think adding
> one is enough to always get called on sync, and I think that will lead
> to unreliable sync implementations.
OK. How about we do it that way in in 2.5 and then look at a backport?
With the steps I propose above, filesystems which don't implement
sync_fs would see no changes, so it should be safe.
next prev parent reply other threads:[~2002-12-06 19:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-06 5:52 [patch] fix the ext3 data=journal unmount bug Andrew Morton
2002-12-06 18:02 ` Chris Mason
2002-12-06 19:12 ` Andrew Morton
2002-12-06 19:34 ` Chris Mason
2002-12-06 19:45 ` Andrew Morton [this message]
2002-12-06 19:57 ` Stephen C. Tweedie
2002-12-06 20:34 ` Chris Mason
2002-12-06 21:22 ` Stephen C. Tweedie
2002-12-06 22:07 ` Chris Mason
2002-12-06 22:25 ` Stephen C. Tweedie
2002-12-07 14:54 ` Matthias Andree
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=3DF0FE4F.5F473D5E@digeo.com \
--to=akpm@digeo.com \
--cc=ext3-users@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mason@suse.com \
/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