All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Vladislav Bolkhovitin <vst@vlnb.net>,
	linux-scsi@vger.kernel.org, linux-driver@qlogic.com
Subject: Re: [Suspected Spam:#] Re: [PATCH] qla2xxx: Fix to allow to reset devices using sg interface (sg_reset)
Date: Sun, 30 Jul 2006 18:18:04 +0100	[thread overview]
Message-ID: <20060730171804.GA8082@infradead.org> (raw)
In-Reply-To: <20060727225310.GU2338@jdlab1.qlogic.org>

On Thu, Jul 27, 2006 at 03:53:10PM -0700, Andrew Vasquez wrote:
> On Thu, 27 Jul 2006, Vladislav Bolkhovitin wrote:
> 
> > Also I've found that without this patch qla2xxx_eh_device_reset() 
> > refuses to reset the device during normal error recovery carrying out by 
> > SCSI mid-layer as well. I didn't do deeper investigations though, with 
> > this patch the error recovery works as expected.
> 
> The only way I see this happening is if the command completed after
> the abort handler FAILED and before the device reset handler executed.
> Possibly.
> 
> During normal EH routines the driver still hold a reference to the
> command, so the sp should be valid.
> 
> In any case, those codes (referencing SP) are residual left-overs from
> our 'standard' non-upstream driver, and should be clensed.

But it shows a bad problem in the design of those external reset ioctls.
Unlike normal EH commands they never went through ->queuecommand so don't
have private data allocated or other setup done.  This can have pretty
serious consequences.  We probably can't fix it short from redoing the
whole EH entry points, but it at least needs to be documented very carefully.

Anyone volunteering to write up the documentation?


  reply	other threads:[~2006-07-30 17:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-25 13:21 [PATCH] qla2xxx: Fix to allow to reset devices using sg interface (sg_reset) Vladislav Bolkhovitin
2006-07-27 17:21 ` Vladislav Bolkhovitin
2006-07-27 22:53   ` [Suspected Spam:#] " Andrew Vasquez
2006-07-30 17:18     ` Christoph Hellwig [this message]
2006-07-27 22:49 ` Andrew Vasquez

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=20060730171804.GA8082@infradead.org \
    --to=hch@infradead.org \
    --cc=andrew.vasquez@qlogic.com \
    --cc=linux-driver@qlogic.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=vst@vlnb.net \
    /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.