From: Fengguang Wu <wfg@mail.ustc.edu.cn>
To: Joerg Platte <jplatte@naasa.net>
Cc: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org,
"linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>
Subject: Re: regression: 100% io-wait with 2.6.24-rcX
Date: Mon, 14 Jan 2008 17:55:18 +0800 [thread overview]
Message-ID: <400304530.01514@ustc.edu.cn> (raw)
Message-ID: <E1JEM2I-00010S-5U@localhost.localdomain> (raw)
In-Reply-To: <20080114035439.GA7330@mail.ustc.edu.cn>
On Mon, Jan 14, 2008 at 11:54:39AM +0800, Fengguang Wu wrote:
> > particular this bug is triggered because the dir mapping page has
> > PAGECACHE_TAG_DIRTY set and PG_dirty cleared, staying in an
> > inconsistent state.
>
> Just found that a deleted dir will enter that inconsistent state when
> someone still have reference to it...
Joerg, this patch fixed the bug for me :-)
Fengguang
---
clear PAGECACHE_TAG_DIRTY for truncated page in block_write_full_page()
The `truncated' page in block_write_full_page() may stick for a long time.
E.g. ext2_rmdir() will set i_size to 0. The dir may still be referenced by
someone, and have dirty pages in it.
So clear PAGECACHE_TAG_DIRTY to prevent pdflush from retrying and iowaiting on
it.
Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn>
---
fs/buffer.c | 2 ++
1 files changed, 2 insertions(+)
Index: linux/fs/buffer.c
===================================================================
--- linux.orig/fs/buffer.c
+++ linux/fs/buffer.c
@@ -2820,7 +2820,9 @@ int block_write_full_page(struct page *p
* freeable here, so the page does not leak.
*/
do_invalidatepage(page, 0);
+ set_page_writeback(page);
unlock_page(page);
+ end_page_writeback(page);
return 0; /* don't care */
}
next prev parent reply other threads:[~2008-01-14 9:55 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-07 10:51 regression: 100% io-wait with 2.6.24-rcX Joerg Platte
2008-01-07 11:19 ` Ingo Molnar
2008-01-07 13:24 ` Joerg Platte
2008-01-07 13:32 ` Peter Zijlstra
2008-01-07 13:40 ` Joerg Platte
2008-01-09 3:27 ` Fengguang Wu
2008-01-09 3:27 ` Fengguang Wu
2008-01-09 6:13 ` Joerg Platte
2008-01-09 12:04 ` Fengguang Wu
2008-01-09 12:04 ` Fengguang Wu
2008-01-09 12:22 ` Joerg Platte
2008-01-09 12:57 ` Fengguang Wu
2008-01-09 12:57 ` Fengguang Wu
2008-01-09 13:04 ` Joerg Platte
2008-01-10 6:58 ` Fengguang Wu
2008-01-10 6:58 ` Fengguang Wu
2008-01-10 7:30 ` Fengguang Wu
2008-01-10 7:30 ` Fengguang Wu
[not found] ` <20080110073046.GA3432@mail.ustc.edu.cn>
2008-01-10 7:53 ` Fengguang Wu
2008-01-10 7:53 ` Fengguang Wu
2008-01-10 8:37 ` Joerg Platte
2008-01-10 8:43 ` Fengguang Wu
2008-01-10 8:43 ` Fengguang Wu
2008-01-10 10:03 ` Joerg Platte
2008-01-11 4:43 ` Fengguang Wu
2008-01-11 4:43 ` Fengguang Wu
2008-01-11 5:29 ` Joerg Platte
2008-01-11 6:41 ` Joerg Platte
2008-01-12 23:32 ` Joerg Platte
2008-01-13 6:44 ` Fengguang Wu
2008-01-13 6:44 ` Fengguang Wu
2008-01-13 8:05 ` Joerg Platte
2008-01-13 8:21 ` Fengguang Wu
2008-01-13 8:21 ` Fengguang Wu
2008-01-13 9:49 ` Joerg Platte
2008-01-13 11:59 ` Fengguang Wu
2008-01-13 11:59 ` Fengguang Wu
[not found] ` <20080113115933.GA11045@mail.ustc.edu.cn>
2008-01-14 3:54 ` Fengguang Wu
2008-01-14 3:54 ` Fengguang Wu
[not found] ` <20080114035439.GA7330@mail.ustc.edu.cn>
2008-01-14 9:55 ` Fengguang Wu [this message]
2008-01-14 9:55 ` Fengguang Wu
2008-01-14 11:30 ` Joerg Platte
2008-01-14 11:30 ` Joerg Platte
2008-01-14 11:41 ` Peter Zijlstra
2008-01-14 12:50 ` Fengguang Wu
2008-01-14 12:50 ` Fengguang Wu
2008-01-15 21:13 ` Mike Snitzer
2008-01-16 5:25 ` Fengguang Wu
2008-01-16 5:25 ` Fengguang Wu
2008-01-15 21:42 ` Ingo Molnar
2008-01-16 5:14 ` Fengguang Wu
2008-01-16 5:14 ` Fengguang Wu
-- strict thread matches above, loose matches on Subject: below --
2008-01-16 9:26 Martin Knoblauch
2008-01-16 12:00 ` Fengguang Wu
2008-01-16 12:00 ` Fengguang Wu
2008-01-16 14:15 Martin Knoblauch
2008-01-16 16:27 ` Mike Snitzer
2008-01-17 13:52 Martin Knoblauch
2008-01-17 16:11 ` Mike Snitzer
2008-01-17 17:44 Martin Knoblauch
2008-01-17 20:23 ` Mel Gorman
2008-01-17 17:51 Martin Knoblauch
2008-01-17 21:50 Martin Knoblauch
2008-01-17 22:12 ` Mel Gorman
2008-01-18 8:19 Martin Knoblauch
2008-01-18 16:01 ` Mel Gorman
2008-01-18 17:46 ` Linus Torvalds
2008-01-18 19:01 ` Martin Knoblauch
2008-01-18 19:23 ` Linus Torvalds
2008-01-22 14:39 ` Alasdair G Kergon
2008-01-18 20:00 ` Mike Snitzer
2008-01-18 22:47 ` Mike Snitzer
2008-01-19 10:24 Martin Knoblauch
2008-01-22 15:25 Martin Knoblauch
2008-01-22 23:40 ` Alasdair G Kergon
2008-01-22 18:51 Martin Knoblauch
2008-01-23 11:12 Martin Knoblauch
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=400304530.01514@ustc.edu.cn \
--to=wfg@mail.ustc.edu.cn \
--cc=jplatte@naasa.net \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
/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.