public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dgilbert@interlog.com>
To: Mike Christie <michaelc@cs.wisc.edu>
Cc: SCSI development list <linux-scsi@vger.kernel.org>,
	Jeremy Linton <jlinton@tributary.com>
Subject: Re: [PATCH] SG_SCSI_RESET ioctl: add no_escalate values
Date: Fri, 15 Feb 2013 18:32:50 -0500	[thread overview]
Message-ID: <511EC5A2.9080107@interlog.com> (raw)
In-Reply-To: <511EAD33.7000901@cs.wisc.edu>

On 13-02-15 04:48 PM, Mike Christie wrote:
> On 02/15/2013 01:39 PM, Douglas Gilbert wrote:
>> Further to the thread titled: "[PATCH] SG_SCSI_RESET ioctl should
>> only perform requested operation" by Jeremy Linton a patch
>> is presented that adds "no_escalate" versions to the existing
>> ioctl. This should not break any existing code.
>>
>> This patches applies to lk 3.7.7 and lk 3.8.0-rc7 . I will extend
>> sg_reset in the sg3_utils package to use it.
>>
>> ChangeLog:
>>    - modify SG_SCSI_RESET ioctl so the SG_SCSI_RESET_NO_ESCALATE
>>      value may be added to the existing values. If so the existing
>>      device->target->bus->host escalation does not occur.
>>    - modify scsi_reset_provider() in the scsi_error.c file in a
>>      similar way to support this new functionality.
>>
>> Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
>
> Some drivers rely on more invasive eh callbacks to be called if they
> return FAILED in a eh callbacks. Is there a way for drivers to tell
> scsi-ml it needs the old behavior?

Mike,
The old behaviour hasn't changed both at the
ioctl(SG_SCSI_RESET) level and the underlying kernel
scsi_reset_provider() function. In both cases extra
values have been added: to third argument of the ioctl
and the second argument ('flag') of the
scsi_reset_provider() function. The existing values
will do exactly the same thing (i.e. escalate) with
the same return values.

The only way it is different is that values that were
previously errors (precisely 0x101 to 0x104) now cause a
non-escalating device(LU)/target/bus reset.

Doug Gilbert



  reply	other threads:[~2013-02-15 23:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-15 19:39 [PATCH] SG_SCSI_RESET ioctl: add no_escalate values Douglas Gilbert
2013-02-15 19:46 ` Jeremy Linton
2013-02-15 21:48 ` Mike Christie
2013-02-15 23:32   ` Douglas Gilbert [this message]
2013-02-16  5:45     ` Michael Christie
2013-02-16  6:44       ` Michael Christie

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=511EC5A2.9080107@interlog.com \
    --to=dgilbert@interlog.com \
    --cc=jlinton@tributary.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michaelc@cs.wisc.edu \
    /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