All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: linux-mm@vger.kernel.org, linux-ext4@vger.kernel.org,
	Arjan van de Ven <arjan@infradead.org>,
	Jens Axboe <jens.axboe@oracle.com>
Subject: Re: [PATCH, RFC] Use WRITE_SYNC in __block_write_full_page() if WBC_SYNC_ALL
Date: Sun, 4 Jan 2009 14:23:03 -0800	[thread overview]
Message-ID: <20090104142303.98762f81.akpm@linux-foundation.org> (raw)
In-Reply-To: <E1LJatq-00061O-0e@closure.thunk.org>

On Sun, 04 Jan 2009 16:52:46 -0500 "Theodore Ts'o" <tytso@mit.edu> wrote:

> If wbc.sync_mode is WBC_SYNC_ALL, then in the page writeback paths we
> will be waiting for the write to complete.  So the I/O should be
> submitted via submit_bh() with WRITE_SYNC so the block layer should
> properly prioritize the I/O.
> 
> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
> Cc: linux-mm@vger.kernel.org
> ---
> 
> Following up with an e-mail thread started by Arjan two months ago,
> (subject: [PATCH] Give kjournald a IOPRIO_CLASS_RT io priority), I have
> a patch, just sent to linux-ext4@vger.kernel.org, which fixes the jbd2
> layer to submit journal writes via submit_bh() with WRITE_SYNC.
> Hopefully this might be enough of a priority boost so we don't have to
> force a higher I/O priority level via a buffer_head flag.  However,
> while looking through the code paths, in ordered data mode, we end up
> flushing data pages via the page writeback paths on a per-inode basis,
> and I noticed that even though we are passing in
> wbc.sync_mode=WBC_SYNC_ALL, __block_write_full_page() is using
> submit_bh(WRITE, bh) instead of submit_bh(WRITE_SYNC).

But this is all the wrong way to fix the problem, isn't it?

The problem is that at one particular point, the current transaction
blocks callers behind the committing transaction's IO completion.

Did anyone look at fixing that?  ISTR concluding that a data copy and
shadow-bh arrangement might be needed.

  reply	other threads:[~2009-01-04 22:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-04 21:52 [PATCH, RFC] Use WRITE_SYNC in __block_write_full_page() if WBC_SYNC_ALL Theodore Ts'o
2009-01-04 22:23 ` Andrew Morton [this message]
2009-01-04 22:43   ` Theodore Tso
2009-01-04 22:43     ` Theodore Tso
2009-01-04 23:19     ` Andrew Morton
2009-01-05  0:21       ` Theodore Tso
2009-01-05  8:02       ` Jens Axboe
2009-01-05 14:47         ` Theodore Tso
2009-01-05 15:58           ` Jens Axboe
2009-01-05 18:47           ` Andrew Morton
2009-01-05 19:35             ` Theodore Tso
2009-01-05 19:38               ` Jens Axboe
2009-01-05 21:16                 ` Theodore Tso
2009-01-06  7:34                   ` Jens Axboe

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=20090104142303.98762f81.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=arjan@infradead.org \
    --cc=jens.axboe@oracle.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-mm@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.