From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Jan Kara <jack@suse.cz>
Cc: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>,
akpm@linux-foundation.org, sct@redhat.com, adilger@sun.com,
linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org,
sugita <yumiko.sugita.yf@hitachi.com>,
Satoshi OSHIMA <satoshi.oshima.fk@hitachi.com>
Subject: Re: [RFC][PATCH] ext3: don't read inode block if the buffer has a write error
Date: Mon, 23 Jun 2008 22:36:30 +1000 [thread overview]
Message-ID: <200806232236.30961.nickpiggin@yahoo.com.au> (raw)
In-Reply-To: <20080623123116.GL26743@duck.suse.cz>
On Monday 23 June 2008 22:31, Jan Kara wrote:
> On Mon 23-06-08 21:46:27, Nick Piggin wrote:
> > I don't know why it was done like this, or if anybody actually tested
> > any of it, but AFAIKS the best way to fix this is to simply not
> > clear any uptodate bits upon write errors.
>
> That would be non-trivial effort because there are lots of places which
> do things like:
> wait_on_buffer(bh);
> if (!buffer_uptodate)
> /* IO error handling */
>
> But what you say sounds like a reasonable thing from a logical
> perspective.
For reads, that's obviously a common pattern, although even that's
broken in some cases where it is used. But definitely uptodate should
not be set on a read error (although does it need to be explicitly
cleared? I would hope we don't submit a read anyway if the page/buffer
is already uptodate).
But you're right, even changing this for writes would not be a trivial
effort.
next prev parent reply other threads:[~2008-06-23 12:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-23 11:25 [RFC][PATCH] ext3: don't read inode block if the buffer has a write error Hidehiro Kawai
2008-06-23 11:46 ` Nick Piggin
2008-06-23 12:31 ` Jan Kara
2008-06-23 12:36 ` Nick Piggin [this message]
2008-06-24 2:17 ` Andrew Morton
2008-06-24 3:01 ` Linus Torvalds
2008-06-24 3:17 ` Nick Piggin
2008-06-24 3:42 ` Linus Torvalds
2008-06-24 13:03 ` Hidehiro Kawai
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=200806232236.30961.nickpiggin@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=adilger@sun.com \
--cc=akpm@linux-foundation.org \
--cc=hidehiro.kawai.ez@hitachi.com \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=satoshi.oshima.fk@hitachi.com \
--cc=sct@redhat.com \
--cc=yumiko.sugita.yf@hitachi.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