All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Smart <James.Smart@Emulex.Com>
To: Mike Christie <michaelc@cs.wisc.edu>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	Hannes Reinecke <hare@novell.com>
Subject: Re: [PATCH] scsi : set target can_queue from devinfo flags
Date: Thu, 25 Sep 2008 15:03:47 -0400	[thread overview]
Message-ID: <48DBE093.5090804@emulex.com> (raw)
In-Reply-To: <48DBDB33.3050206@cs.wisc.edu>


Mike Christie wrote:
> So what I am asking is we can do the setting of starget->can_queue from:
> 
> 1. kernel devinfo table like in this patch.
> 
> 2. udev rule.
> 
> 3. userspace scsi daemon that handles lots of junk scsi-ml in the kernel
> does not want to handle.

Sure. all can work.

My preferences:
- I prefer to set max's before we start to send i/o that checks against 
them, meaning I like the kernel devinfo table better. But, I can't see a 
scenario where any max would likely be exceeded (unless the max is 
really really low) before a user-space thing could set it.

- Queue depth handling - giving the headaches, the closer to the 
hardware the better.  The ramp-down should be in the kernel/driver and 
not userspace. Ramp-up can be in user-space. Note: queue depth should be 
per lun, and thus never touch target can_queue limits.  So queue_depths 
and tgt can_queue shouldn't be discussed together. (Yes, even with jbods 
  where the tgt and lun are the same - there will be a relationship, but 
I still wouldn't marry the two).

-- james

  reply	other threads:[~2008-09-25 19:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-13 17:45 [PATCH] scsi : set target can_queue from devinfo flags James Smart
2008-05-14  6:34 ` Hannes Reinecke
2008-05-14 14:39   ` James Smart
2008-05-14 15:01     ` Hannes Reinecke
2008-05-14 19:38 ` James Bottomley
2008-05-14 21:50   ` James Smart
2008-05-15  1:21     ` James Smart
2008-09-24 19:13 ` Mike Christie
2008-09-24 19:17   ` Mike Christie
2008-09-25 18:40     ` Mike Christie
2008-09-25 19:03       ` James Smart [this message]
2008-09-24 19:38   ` James Smart
2008-09-25 18:15     ` Mike Christie
2008-09-26  7:46       ` Hannes Reinecke

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=48DBE093.5090804@emulex.com \
    --to=james.smart@emulex.com \
    --cc=hare@novell.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 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.