From: Jens Axboe <axboe@suse.de>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Andrew Morton <akpm@osdl.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Block layer question - indicating EOF on block devices
Date: Thu, 2 Dec 2004 09:18:28 +0100 [thread overview]
Message-ID: <20041202081828.GC10454@suse.de> (raw)
In-Reply-To: <1101912876.30770.14.camel@localhost.localdomain>
On Wed, Dec 01 2004, Alan Cox wrote:
> On Mer, 2004-12-01 at 02:43, Andrew Morton wrote:
> > Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > If the driver simply returns an I/O error, userspace should see a short
> > read and be happy?
>
> And the logs fill with I/O error messages.
read-ahead should definitely be marked quiet, agree.
> > > and
> > > it also fills the log with "I/O error on" spew from the block layer
> > > innards even if REQ_QUIET is magically set.
> >
> > We'd need to propagate that quietness back up to the buffer_head layer, at
> > least.
>
> Thats what I was assuming looking at the code. Really the block layer is
> broken here. It should not be whining about I/O errors on readahead
> blocks just letting them go. It has no idea if the readahead is a
> badblock a media feature or whatever. (or as James added on irc scsi
> reservations).
The upper buffer layer could do something intelligent if EOF is set on
the bio, it really should. The problem is that there's no -EXXX to flag
EOF from the driver, it would be nicest if one could just do:
end_that_request_chunk(req, 1, good_bytes);
end_that_request_chunk(req, -EOF, residual);
and be done with it.
--
Jens Axboe
next prev parent reply other threads:[~2004-12-02 8:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-30 15:50 Block layer question - indicating EOF on block devices Alan Cox
2004-12-01 2:43 ` Andrew Morton
2004-12-01 14:54 ` Alan Cox
2004-12-02 8:18 ` Jens Axboe [this message]
2004-12-02 13:01 ` Alan Cox
2004-12-02 14:07 ` 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=20041202081828.GC10454@suse.de \
--to=axboe@suse.de \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox