public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Jeremy Higdon <jeremy@sgi.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: Control Mode page (0xA) QERR bit setting
Date: 30 Aug 2004 23:33:46 -0400	[thread overview]
Message-ID: <1093923230.3731.22.camel@mulgrave> (raw)
In-Reply-To: <20040831024520.GA2118@sgi.com>

On Mon, 2004-08-30 at 22:45, Jeremy Higdon wrote:
> It looks as though the midlayer assumes that QERR is 0.  Is that correct?

Actually, no, the mid-layer is agnostic to the setting of QERR.  On
error, it simply quiesces the host and waits for all the commands to
timeout or complete.

> If QERR is 0, then a check condition for one command will not affect other
> commands, whereas if QERR is 1, then when one command gets a check condition,
> all others for that ITL are silently aborted.

Yes, so we see them time out in the error handler.

> Since I wasn't able to find any code (other than in the ipr driver) that
> completed all outstanding commands to a Lun when a check condition is
> received, I figure that we depend on QERR=0.

No, we work for either.  QERR != 0 is very rare in mode pages, primarily
because it's almost impossible to predict what tags actually got dropped
on the floor because you don't know the status of the head scheduler
(only tasks accepted and scheduled behind the failing tag actually get
dropped; executing tasks ahead of it are allowed to complete as long as
the failing condition doesn't impact them).

James



  reply	other threads:[~2004-08-31  3:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31  2:45 Control Mode page (0xA) QERR bit setting Jeremy Higdon
2004-08-31  3:33 ` James Bottomley [this message]
2004-08-31  4:48   ` Jeremy Higdon
2004-08-31 13:55 ` Brian King

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=1093923230.3731.22.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=jeremy@sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox