public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Ted Ts'o <tytso@mit.edu>
To: Yongqiang Yang <xiaoqiangnk@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: confused by delayed allocation and ordered journal
Date: Sat, 25 Dec 2010 09:39:16 -0500	[thread overview]
Message-ID: <20101225143916.GD2595@thunk.org> (raw)
In-Reply-To: <AANLkTi=2S3JsAOP290_1ASMNGKMFZK+Srt4v5Qs474dB@mail.gmail.com>

On Sat, Dec 25, 2010 at 09:15:28PM +0800, Yongqiang Yang wrote:
> 
> I found that if a block'allocation is delayed, and is not allocated
> when journal flushes it, then journal just redirties it and return in
> journal_submit_data_buffers.
> 
> If I understand right, how to guarantee that the journal mode is ordered?

The primary goal of ordered mode is to make sure that stale data is
not exposed after a crash.  To the extent that delayed allocation also
achieves this goal, it's fine.  The fact that ext3 forced data blocks
out as part of its jbd commit function was always an implementation
detail.

In the long run we'll be getting rid of ordered mode even more so, by
writing the data block first, and only then updating the file system
metadata.  At that point there will be no ordered flushing at all, and
in fact ordered mode will go away as a journal mode supported by ext4.

   		     	     	  - Ted

  reply	other threads:[~2010-12-25 14:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-25 13:15 confused by delayed allocation and ordered journal Yongqiang Yang
2010-12-25 14:39 ` Ted Ts'o [this message]
2010-12-25 16:43   ` Amir Goldstein

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=20101225143916.GD2595@thunk.org \
    --to=tytso@mit.edu \
    --cc=linux-ext4@vger.kernel.org \
    --cc=xiaoqiangnk@gmail.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