From: Mike Snitzer <snitzer@redhat.com>
To: christophe.varoqui@opensvc.com,
device-mapper development <dm-devel@redhat.com>
Cc: "cyril.galibern" <cyril.galibern@opensvc.com>,
linux-scsi@vger.kernel.org
Subject: Re: Write protected devices, unexpected dm-multipath queueing
Date: Fri, 6 Jan 2012 17:55:54 -0500 [thread overview]
Message-ID: <20120106225554.GA15329@redhat.com> (raw)
In-Reply-To: <20120106223212.GB2393@redhat.com>
On Fri, Jan 06 2012 at 5:32pm -0500,
Mike Snitzer <snitzer@redhat.com> wrote:
> On Fri, Jan 06 2012 at 2:30pm -0500,
> Christophe Varoqui <christophe.varoqui@gmail.com> wrote:
>
> > Hannes, list,
> >
> > reading your kernel path there
> > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=63583cca745f440167bf27877182dc13e19d4bcf
> > I wonder if this is expected that a write io on a write protected device
> > is returned to the queue ? I would have guessed it qualified as
> > TARGET_ERROR, hence not retryable (and not causing path invalidation).
> >
> > In the following log the sense code is clearly seen as
> > Sense Key : Data Protect [current]
> > Add. Sense: Write protected
> >
> > The log is grabbed from a el6 kernel rev. 131 which include the
> > mentioned patch (since rev. 110 iirc).
> >
> > Care to confirm something is fishy there ?
>
> scsi_check_sense() needs to be trained to return TARGET_ERROR for this
> case.
>
> The commit you referenced wasn't meant to have covered _every_ possible
> TARGET_ERROR case.
Hmm, but looking closer that commit _does_ return TARGET_ERROR for
DATA_PROTECT.
I need to dig deeper, but I think Hannes gets back to work on Monday.
Mike
next prev parent reply other threads:[~2012-01-06 22:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-06 19:30 Write protected devices, unexpected dm-multipath queueing Christophe Varoqui
2012-01-06 22:32 ` Mike Snitzer
2012-01-06 22:55 ` Mike Snitzer [this message]
2012-01-06 23:20 ` Mike Snitzer
2012-01-07 9:39 ` Christophe Varoqui
2012-01-09 8:01 ` Hannes Reinecke
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=20120106225554.GA15329@redhat.com \
--to=snitzer@redhat.com \
--cc=christophe.varoqui@opensvc.com \
--cc=cyril.galibern@opensvc.com \
--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.