From: Lachlan McIlroy <lachlan@sgi.com>
To: Stewart Smith <stewart@flamingspork.com>
Cc: xfs@oss.sgi.com
Subject: Re: review: propogate return codes from flush routines
Date: Tue, 05 Sep 2006 10:46:20 +0100 [thread overview]
Message-ID: <44FD476C.3080009@sgi.com> (raw)
In-Reply-To: <1157442848.5844.38.camel@localhost.localdomain>
Stewart Smith wrote:
> On Mon, 2006-09-04 at 12:25 +0100, Lachlan McIlroy wrote:
>
>>Here's a patch to handle error return values in fs_flush_pages and
>>fs_flushinval_pages. It changes the prototype of fs_flushinval_pages
>>so we can propogate the errors and handle them at higher layers. I also
>>modified xfs_itruncate_start so that it could propogate the error further.
>
>
> IMHO this is always a good idea. Although I guess the only concern can
> be getting the right error back (and a useful one).
In all but one case the patch passes the error back up to the next layer
unmodified. In xfs_inactive() I've converted the error into VN_INACTIVE_CACHE
since that follows the existing convention.
>
>
>>The motivation behind this change was the recent BUG reported due to a
>>direct I/O read trying to write to delayed alloc extents. While the exact
>>cause of this problem is not known it is possible that fs_flushinval_pages
>>ignored an error while flushing, truncated the pages on the file anyway,
>>and failed to convert all delayed alloc extents.
>
>
> from a quick look the patch seems to do as advertised.
>
> i probably just haven't looked hard enough - but I'm assuming the layers
> higher up deal with the error and: report to user, write log message or
> something if there's a really catastrophic error?
>
What's a really catastrophic error?
I'll let the higher layers handle the error in their own way - most likely
any errors will result in a failed system call.
next prev parent reply other threads:[~2006-09-05 9:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-04 11:25 review: propogate return codes from flush routines Lachlan McIlroy
2006-09-05 7:54 ` Stewart Smith
2006-09-05 9:46 ` Lachlan McIlroy [this message]
2006-09-06 9:04 ` Stewart Smith
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=44FD476C.3080009@sgi.com \
--to=lachlan@sgi.com \
--cc=stewart@flamingspork.com \
--cc=xfs@oss.sgi.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 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.