All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: James.Bottomley@hansenpartnership.com
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"hare@suse.de" <hare@suse.de>,
	"michaelc@cs.wisc.edu" <michaelc@cs.wisc.edu>,
	"Moger, Babu" <Babu.Moger@netapp.com>
Subject: Re: scsi_lib: fix scsi_io_completion's SG_IO error propagation
Date: Wed, 18 Jul 2012 19:06:14 -0400	[thread overview]
Message-ID: <20120718230614.GC13570@redhat.com> (raw)
In-Reply-To: <77471C95FAFD844C8CA02DD4F4C5FE2B07DF051A@SACEXCMBX02-PRD.hq.netapp.com>

Hi James,

Seems this one slipped through the cracks.  Please review/apply.

Thanks,
Mike

On Thu, May 31 2012 at  4:33pm -0400,
Moger, Babu <Babu.Moger@netapp.com> wrote:

> Thanks Mike. Looks good.
> 
> > -----Original Message-----
> > From: Mike Snitzer [mailto:snitzer@redhat.com]
> > Sent: Thursday, May 31, 2012 3:24 PM
> > To: Paolo Bonzini
> > Cc: linux-scsi@vger.kernel.org; Moger, Babu; hare@suse.de;
> > michaelc@cs.wisc.edu; James.Bottomley@hansenpartnership.com;
> > stable@vger.kernel.org.#.3.4
> > Subject: Re: scsi_lib: fix scsi_io_completion's SG_IO error propagation
> > 
> > On Thu, May 31 2012 at  3:51pm -0400,
> > Paolo Bonzini <pbonzini@redhat.com> wrote:
> > 
> > > Il 31/05/2012 21:05, Mike Snitzer ha scritto:
> > > > The following v3.4-rc1 commit unmasked an existing bug in
> > > > scsi_io_completion's SG_IO error handling:
> > > > 47ac56d [SCSI] scsi_error: classify some ILLEGAL_REQUEST sense as a
> > permanent TARGET_ERROR
> > > >
> > > > Given that certain ILLEGAL_REQUEST are now properly categorized as
> > > > TARGET_ERROR the host_byte is being set (before host_byte wasn't ever
> > > > set for these ILLEGAL_REQUEST).
> > > >
> > > > In scsi_io_completion, initialize req->errors with cmd->result _after_
> > > > the SG_IO block that calls __scsi_error_from_host_byte (which may
> > > > modify the host_byte).
> > > >
> > > > Before this fix:
> > > >
> > > >     cdb to send: 12 01 01 00 00 00
> > > > ioctl(3, SG_IO, {'S', SG_DXFER_NONE, cmd[6]=[12, 01, 01, 00, 00, 00],
> > > >     mx_sb_len=32, iovec_count=0, dxfer_len=0, timeout=20000, flags=0,
> > > >     status=02, masked_status=01, sb[19]=[70, 00, 05, 00, 00, 00, 00, 0b,
> > > >     00, 00, 00, 00, 24, 00, 00, 00, 00, 00, 00], host_status=0x10,
> > > >     driver_status=0x8, resid=0, duration=0, info=0x1}) = 0
> > > > SCSI Status: Check Condition
> > > >
> > > > Sense Information:
> > > > sense buffer empty
> > > >
> > > > After:
> > > >
> > > >     cdb to send: 12 01 01 00 00 00
> > > > ioctl(3, SG_IO, {'S', SG_DXFER_NONE, cmd[6]=[12, 01, 01, 00, 00, 00],
> > > >     mx_sb_len=32, iovec_count=0, dxfer_len=0, timeout=20000, flags=0,
> > > >     status=02, masked_status=01, sb[19]=[70, 00, 05, 00, 00, 00, 00, 0b,
> > > >     00, 00, 00, 00, 24, 00, 00, 00, 00, 00, 00], host_status=0,
> > > >     driver_status=0x8, resid=0, duration=0, info=0x1}) = 0
> > > > SCSI Status: Check Condition
> > > >
> > > > Sense Information:
> > > >  Fixed format, current;  Sense key: Illegal Request
> > > >  Additional sense: Invalid field in cdb
> > > >  Raw sense data (in hex):
> > > >         70 00 05 00 00 00 00 0b  00 00 00 00 24 00 00 00
> > > >         00 00 00
> > > >
> > > > Signed-off-by: Mike Snitzer <snitzer@redhat.com>
> > > > Reviewed-by: Babu Moger <babu.moger@netapp.com>
> > >
> > > Reported-by: Paolo Bonzini <pbonzini@redhat.com>
> > > Tested-by: Paolo Bonzini <pbonzini@redhat.com>
> > 
> > Yes, thanks for backfilling the Reported-by and Tested-by Paolo!

  reply	other threads:[~2012-07-18 23:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-31 19:05 [PATCH] [SCSI] scsi_lib: fix scsi_io_completion's SG_IO error propagation Mike Snitzer
2012-05-31 19:51 ` Paolo Bonzini
2012-05-31 20:24   ` Mike Snitzer
2012-05-31 20:33     ` Moger, Babu
2012-07-18 23:06       ` Mike Snitzer [this message]
2012-07-25 17:46         ` [RESEND PATCH] SCSI: " Mike Snitzer
2012-07-27 13:29           ` 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=20120718230614.GC13570@redhat.com \
    --to=snitzer@redhat.com \
    --cc=Babu.Moger@netapp.com \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=hare@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michaelc@cs.wisc.edu \
    --cc=pbonzini@redhat.com \
    /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.