From: Andreas Dilger <adilger@clusterfs.com>
To: Andrew Morton <akpm@zip.com.au>
Cc: Linus Torvalds <torvalds@transmeta.com>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch 9/16] direct-to-BIO writeback for writeback-mode ext3
Date: Sat, 1 Jun 2002 14:51:24 -0600 [thread overview]
Message-ID: <20020601205124.GB7905@turbolinux.com> (raw)
In-Reply-To: <3CF88903.E253A075@zip.com.au> <20020601191514.GA7905@turbolinux.com> <3CF92B1D.E466B743@zip.com.au>
On Jun 01, 2002 13:14 -0700, Andrew Morton wrote:
> Andreas Dilger wrote:
> > On Jun 01, 2002 01:42 -0700, Andrew Morton wrote:
> > > Turn on direct-to-BIO writeback for ext3 in data=writeback mode.
> >
> > A minor note on this (especially minor since I believe data=journal
> > doesn't even work in 2.5), but you should probably also change the
> > address ops in ext3/ioctl.c if you enable/disable per-inode data
> > journaling.
>
> hrm. Actually, changing journalling mode against a file while
> modifications are happening against it is almost certain to explode
> if the timing is right. ISTR that we have seen bug reports against
> this on ext3-users. This is just waaaay too hard to do.
Actually, if you look at the code in ioctl.c for changing the journaling
mode of a file, it basically stops _all_ I/O to the filesystem and waits
for it to complete before changing the journal data flag, so it should
also be possible to change the aops pointer at the same time. The "stop
all I/O" is one of the reasons why enabling data journaling on files is
only allowed for root/privileged users.
> But we can fix it by doing the opposite: create three separate
> a_ops instances, one for each journalling mode. Assign it at
> new_inode/read_inode time.
Sure, as long as this doesn't increase the amount of code duplication.
Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/
prev parent reply other threads:[~2002-06-01 20:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-01 8:42 [patch 9/16] direct-to-BIO writeback for writeback-mode ext3 Andrew Morton
2002-06-01 19:15 ` Andreas Dilger
2002-06-01 20:14 ` Andrew Morton
2002-06-01 20:51 ` Andreas Dilger [this message]
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=20020601205124.GB7905@turbolinux.com \
--to=adilger@clusterfs.com \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.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