From: Alexander Sandler <alexander.sandler@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Weirdness in error handling in SCSI and block layers.
Date: Wed, 15 Jun 2005 16:54:38 +0200 [thread overview]
Message-ID: <230a243e050615075472e8309c@mail.gmail.com> (raw)
Hi list.
I recently noticed something wrong in error handling in between SCSI
and block device driver layers.
The problem is that SCSI errors are not actually passed to block
device layer. When scsi_end_request() calls end_that_request_chunk()
it passes only the uptodate value which set earlier, at the end of
scsi_io_completion(), and only indicate whether request succeeded or
failed. Eventually __end_that_request_first() calls bio_endio() with
either -EIO or uptodate value (that in case of success will be 0). As
a result, instead of getting error code that more or less indicates
what kind of error took place, block device layer always gets -EIO.
Any comments/ideas?
Alexander Sandler.
PS: Please CC to me.
reply other threads:[~2005-06-15 14:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=230a243e050615075472e8309c@mail.gmail.com \
--to=alexander.sandler@gmail.com \
--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