Linux Device Mapper development
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: device-mapper development <dm-devel@redhat.com>
Cc: agk@redhat.com, linux-scsi@vger.kernel.org,
	jens.axboe@oracle.com,
	Christophe Varoqui <christophe.varoqui@free.fr>
Subject: Re: [dm-devel] Re: [BUG] dm-mpath and scsi persistent reservation
Date: Wed, 22 Oct 2008 21:53:08 -0500	[thread overview]
Message-ID: <48FFE714.7010308@cs.wisc.edu> (raw)
In-Reply-To: <1224707416.6851.33.camel@localhost.localdomain>

James Bottomley wrote:
>> I don't see how we could use a device handler to translate an scsi error
>> code from a write io submitted to the multipath device map. Do you ?
> 
> Well, there is a problem.  Reservation Conflict should be treated as a
> device error and passed straight up ... it shouldn't really have any
> effect on dm mp because a path switch is unlikely to fix any issues.  So
> dm mp shouldn't be intercepting this type of error at all.
> 

I think what Christophe was asking for is something like this:

[RFC PATCH 1/4] convert block layer drivers to blkerr
http://marc.info/?l=linux-scsi&m=112487427230642&w=2
[RFC PATCH 2/4] convert dm to blkerr error values
http://marc.info/?l=linux-scsi&m=112487427306501&w=2
[RFC PATCH 3/4] convert dm-multipath to blkerr error
http://marc.info/?l=linux-scsi&m=112487431524436&w=2
[RFC PATCH 4/4] convert scsi to blkerr error values
http://marc.info/?l=linux-scsi&m=112487431524350&w=2

something that allows lower layers to give the upper layers some extra 
info. In the patches the scsi layer would return a fatal device error, 
and device mapper multipath would see that and just fail the IO instead 
of retrying on a new path.

I do not like my implementation in those patches, but I did not have 
time in the past to rework them. I can now though if you guys have any 
comments. I am really struggling on the definition of the block layer 
errors codes and what info they should convey. For example I was not 
sure if they should they give a hint about if the error is fatal or 
retryable like in the patches above or should they describe what happened?

  reply	other threads:[~2008-10-23  2:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21 21:19 [BUG] dm-mpath and scsi persistent reservation Christophe Varoqui
2008-10-21 22:48 ` Chandra Seetharaman
2008-10-22 19:54   ` Christophe Varoqui
2008-10-22 20:30     ` [dm-devel] " James Bottomley
2008-10-23  2:53       ` Mike Christie [this message]
2008-10-22 21:21     ` Chandra Seetharaman
2008-10-23 19:30       ` Christophe Varoqui
2008-10-23 21:03   ` Christophe Varoqui

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=48FFE714.7010308@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=agk@redhat.com \
    --cc=christophe.varoqui@free.fr \
    --cc=dm-devel@redhat.com \
    --cc=jens.axboe@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox