[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6E21E5352C11B742B20C142EB499E0480816C27C@TK5EX14MBXC126.redmond.corp.microsoft.com>
Date: Thu, 30 Jun 2011 19:59:28 +0000
From: KY Srinivasan <kys@...rosoft.com>
To: Christoph Hellwig <hch@...radead.org>
CC: "gregkh@...e.de" <gregkh@...e.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devel@...uxdriverproject.org" <devel@...uxdriverproject.org>,
"virtualization@...ts.osdl.org" <virtualization@...ts.osdl.org>,
Haiyang Zhang <haiyangz@...rosoft.com>,
"Abhishek Kane (Mindtree Consulting PVT LTD)"
<v-abkane@...rosoft.com>, "Hank Janssen" <hjanssen@...rosoft.com>
Subject: RE: [PATCH 38/40] Staging: hv: storvsc: Fixup srb_status for
INQUIRY and MODE_SENSE
> -----Original Message-----
> From: Christoph Hellwig [mailto:hch@...radead.org]
> Sent: Thursday, June 30, 2011 3:48 PM
> To: KY Srinivasan
> Cc: gregkh@...e.de; linux-kernel@...r.kernel.org;
> devel@...uxdriverproject.org; virtualization@...ts.osdl.org; Haiyang Zhang;
> Abhishek Kane (Mindtree Consulting PVT LTD); Hank Janssen
> Subject: Re: [PATCH 38/40] Staging: hv: storvsc: Fixup srb_status for INQUIRY and
> MODE_SENSE
>
> On Wed, Jun 29, 2011 at 07:39:35AM -0700, K. Y. Srinivasan wrote:
> > The current handler on the Windows Host does not correctly handle
> > INQUIRY and MODE_SENSE commands with some options. Fixup srb_status
> > in these cases since the failure is not fatal.
>
> > + /*
> > + * The current SCSI handling on the host side does
> > + * not correctly handle:
> > + * INQUIRY command with page code parameter set to 0x80
> > + * MODE_SENSE command with cmd[2] == 0x1c
> > + *
> > + * Setup srb status so this won't be fatal.
> > + */
> > +
> > + if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> > + (stor_pkt->vm_srb.cdb[0] == MODE_SENSE))
> > + vstor_packet->vm_srb.srb_status = 0;
>
> Given that the srb_status is only used for debug printks I don't
> quite see the point. If people explicitly turn on debugging they
> should see that these commands fail, shouldn't they?
>
The reason I did this was so that I could key off on real failures indicated by
srb_status == 0x4 to off-line the device.
Regards,
K. Y
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists