linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: brking@us.ibm.com
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] p00001_scsi_tcq_queue_lock
Date: 06 Aug 2004 21:09:49 -0700	[thread overview]
Message-ID: <1091815154.2421.15.camel@mulgrave> (raw)
In-Reply-To: <410FD03E.6040305@us.ibm.com>

On Tue, 2004-08-03 at 10:49, Brian King wrote:
> Add locking to scsi_activate_tcq and scsi_deactivate_tcq to fix a race
> condition that can occur when disabling tcqing with commands in flight.

It's possible to do it like this.  However, we should really quiesce the
SCSI device before disabling tcq.  It is not legal in the scsi spec to
have both tagged and untagged commands outstanding.  Most drives do the
right thing and return BUSY to an untagged request if they have tags in
flight.  Also, we have to wait until all tags return before freeing the
block layer tag structures...and there's always the devices that do
strange things in this situation...

James



  reply	other threads:[~2004-08-07  4:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-03 17:49 [PATCH] p00001_scsi_tcq_queue_lock Brian King
2004-08-07  4:09 ` James Bottomley [this message]
2004-08-09 14:04   ` Brian King
2004-08-09 14:14     ` Brian King
2004-09-17 17: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=1091815154.2421.15.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=brking@us.ibm.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;
as well as URLs for NNTP newsgroup(s).