* [PATCH] scsi_mid_low_api.txt in lk 2.5.69
@ 2003-05-18 1:29 Douglas Gilbert
0 siblings, 0 replies; only message in thread
From: Douglas Gilbert @ 2003-05-18 1:29 UTC (permalink / raw)
To: linux-scsi, James.Bottomley
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-18 1:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-18 1:29 [PATCH] scsi_mid_low_api.txt in lk 2.5.69 Douglas Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox