From: Mike Christie <michaelc@cs.wisc.edu>
To: device-mapper development <dm-devel@redhat.com>
Cc: axboe@suse.de, linux-scsi@vger.kernel.org
Subject: Re: Re: [RFC PATCH 1/4] convert block layer drivers to blkerr error values
Date: Wed, 24 Aug 2005 14:27:27 -0500 [thread overview]
Message-ID: <430CCA1F.7070408@cs.wisc.edu> (raw)
In-Reply-To: <20050824192132.GA20663@us.ibm.com>
Patrick Mansfield wrote:
> On Wed, Aug 24, 2005 at 04:03:58AM -0500, Mike Christie wrote:
>
>
>>-#define end_io_error(uptodate) (unlikely((uptodate) <= 0))
>>+enum {
>>+ BLK_SUCCESS = 0, /* Must be zero for compat with old usage */
>>+ BLKERR_IO, /* Generic I/O error */
>>+ BLKERR_NOTSUPP, /* Operation is not supported */
>>+ BLKERR_WOULDBLOCK, /* Operation would block */
>>+ BLKERR_FATAL_DRV, /* Fatal driver error */
>>+ BLKERR_FATAL_DEV, /* Fatal device error */
>>+ BLKERR_FATAL_XPT, /* Fatal transport error */
>>+ BLKERR_RETRY_DRV, /* Driver error, I/O may be retried */
>>+ BLKERR_RETRY_DEV, /* Device error, I/O may be retried */
>>+ BLKERR_RETRY_XPT, /* Transport error, I/O may retried */
>>+};
>
>
> Do you need to add and use a BLKERR_TIMEOUT? As we can't determine the
> problem area for a timeout, and if it can or should be retried.
>
I was hoping we could figure this out. In the patches, if a command
times out and eh kicks off I was just returning BLKERR_RETRY_DEV. This
guessing occurs for a lot of errors becuase we do not know what exactly
happened. the reason for the timeout could have been a device problem or
transport problem. Some help in figuring this type of thing out is
needed in other places.
next prev parent reply other threads:[~2005-08-24 19:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-24 9:03 [RFC PATCH 1/4] convert block layer drivers to blkerr error values Mike Christie
2005-08-24 9:49 ` Mike Christie
2005-08-24 19:21 ` Patrick Mansfield
2005-08-24 19:27 ` Mike Christie [this message]
2005-08-24 19:32 ` Jeff Garzik
2005-08-24 19:42 ` Mike Christie
2005-08-24 20:33 ` James Bottomley
2005-08-24 20:50 ` Mike Christie
2005-08-24 21:02 ` [dm-devel] " James Bottomley
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=430CCA1F.7070408@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=axboe@suse.de \
--cc=dm-devel@redhat.com \
--cc=linux-scsi@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 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.