From: Douglas Gilbert <dougg@torque.net>
To: linux-scsi@vger.kernel.org, James.Bottomley@steeleye.com
Subject: [PATCH] scsi_mid_low_api.txt in lk 2.5.69
Date: Sun, 18 May 2003 11:29:06 +1000 [thread overview]
Message-ID: <3EC6E1E2.90801@torque.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 217 bytes --]
This is a catch up, applying the patch that Andries
Brouwer sent a while back. It will apply to lk 2.5.69
and 2.5.69-bk10 .
Other people who change this interface feel free to send
patches to James :-)
Doug Gilbert
[-- Attachment #2: scsi_mid_low_api_2569.diff --]
[-- Type: text/plain, Size: 3203 bytes --]
--- scsi_mid_low_api.txt 2003-05-05 14:03:22.000000000 +1000
+++ scsi_mid_low_api.txt030429 2003-04-29 09:34:05.000000000 +1000
@@ -22,7 +22,10 @@
a SCSI host and a PCI device is common but not required (e.g. with
ISA or MCA adapters).]
-This version of the document roughly matches linux kernel version 2.5.67 .
+This version of the document roughly matches linux kernel version 2.5.68 .
+This document can be found in the Linux kernel source Documentation/scsi
+directory and is called scsi_mid_low_api.txt . A more recent copy may
+be found at http://www.torque.net/scsi/scsi_mid_low_api.txt.gz .
Documentation
=============
@@ -142,13 +145,14 @@
slave_configure() --> scsi_adjust_queue_depth()
|
slave_alloc()
- slave_configure() --> scsi_adjust_queue_depth()
+ slave_configure()
|
slave_alloc() **
slave_destroy() **
-The invocation of scsi_adjust_queue_depth() by the LLD is required
-if slave_configure() is supplied.
+If the LLD wants to adjust the default queue settings, it can invoke
+scsi_adjust_queue_depth() in its slave_configure() routine.
+
** For scsi devices that the mid level tries to scan but do not
respond, a slave_alloc(), slave_destroy() pair is called.
@@ -179,7 +183,7 @@
scsi_add_device() ------+
|
slave_alloc()
- slave_configure() --> scsi_adjust_queue_depth()
+ slave_configure() [--> scsi_adjust_queue_depth()]
[DEVICE unplug]
LLD mid level LLD
@@ -228,13 +232,14 @@
slave_destroy() **
|
slave_alloc()
- slave_configure() --> scsi_adjust_queue_depth()
+ slave_configure()
slave_alloc() **
slave_destroy() **
-If the LLD does not supply a slave_configure() then the mid level invokes
-scsi_adjust_queue_depth() itself with tagged queuing off and "cmd_per_lun"
-for that host as the queue length.
+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.
+
** For scsi devices that the mid level tries to scan but do not
respond, a slave_alloc(), slave_destroy() pair is called.
@@ -1093,11 +1098,6 @@
* Notes: Allows the driver to inspect the response to the initial
* INQUIRY done by the scanning code and take appropriate action.
* For more details see the hosts.h file.
- * If this function is not supplied, the mid level will call
- * scsi_adjust_queue_depth() with the struct Scsi_Host::cmd_per_lun
- * value on behalf of the given device. If this function is
- * supplied then its implementation must call
- * scsi_adjust_queue_depth().
*
* Defined in: LLD
**/
@@ -1277,8 +1277,9 @@
Patrick Mansfield <patmans@us.ibm.com>
Christoph Hellwig <hch@infradead.org>
Doug Ledford <dledford@redhat.com>
+ Andries Brouwer <Andries.Brouwer@cwi.nl>
Douglas Gilbert
dgilbert@interlog.com
-19th April 2003
+29th April 2003
reply other threads:[~2003-05-18 1:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3EC6E1E2.90801@torque.net \
--to=dougg@torque.net \
--cc=James.Bottomley@steeleye.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