All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: Brian King <brking@us.ibm.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: command queueing cmd_per_lun, queue_depth and tags
Date: Mon, 10 Apr 2006 16:42:07 -0700	[thread overview]
Message-ID: <20060410234207.GA21449@us.ibm.com> (raw)
In-Reply-To: <443ABA5F.9010306@us.ibm.com>

On Mon, Apr 10, 2006 at 03:04:47PM -0500, Brian King wrote:
> Patrick Mansfield wrote:

> > I should not have used "untagged", that is misleading and a problem with
> > current scsi core, where we reference tcq, tags, and don't seem to mention
> > task attributes.
> > 
> > But LLDD can override anything in slave_configure.
> 
> I guess my biggest problem with this part of the patch is that it prevents an
> LLDD that wants this behavior from being able to use scsi_adjust_queue_depth
> to set the queue depth, whether it be in slave_configure, change_queue_depth, etc.
> 
> > Also, it looks like we could safely use cmd_per_lun as the default
> > queue_depth, rather than setting it to 1 as done in my previous
> > post/patch.
> 
> Ok. If we do that and also allow scsi_adjust_queue_depth
> to adjust the queue depth when tagged == 0, as is allowed today,
> then I think most of my objections to the patch should disappear,
> although it may require me to make a couple ipr changes.

Yeh, and then there is not really anything left of my patch, small as it
was, just the check for BQUE and calling scsi_activate_tcq(). And calling
scsi_activate_tcq if tagged_supported should be a separate patch that also
includes any required driver changes (like with ipr to call
scsi_deactivate_tcq, and an audit of all other drivers ...).

Really I was confused by scsi_mid_low_api.txt and code mentioning tags
along with cmd_per_lun and LLD abilities, like this:

	The mid level invokes scsi_adjust_queue_depth() with tagged
	queuing off and "cmd_per_lun" for that host as the queue length.
	These settings can be overridden by a slave_configure() supplied
	by the LLD.

But it makes no sense to set "tagged queuing off" on transports like FCP.

So, it is fine to use cmd_per_lun as the default queue_depth, without
any adjustments (in slave_configure) via scsi_adjust_queue_depth or
scsi_activate_tcq.

-- Patrick Mansfield

      reply	other threads:[~2006-04-10 23:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-07 21:49 command queueing cmd_per_lun, queue_depth and tags Patrick Mansfield
2006-04-07 22:29 ` Brian King
2006-04-10 18:59   ` Patrick Mansfield
2006-04-10 20:04     ` Brian King
2006-04-10 23:42       ` Patrick Mansfield [this message]

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=20060410234207.GA21449@us.ibm.com \
    --to=patmans@us.ibm.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 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.