Commit:     4660c8ed5aaed99d82785499f034a8cc9199866d
Parent:     90b0c41829450d60da388edcd346c5b31371e7be
Author:     James Bottomley <[EMAIL PROTECTED]>
AuthorDate: Sun Feb 10 09:42:46 2008 -0600
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Mon Feb 11 13:40:13 2008 -0600

    [SCSI] update SG_ALL to avoid causing chaining
    Since the sg chaining patches went in, our current value of 255 for
    SG_ALL excites chaining on some drivers which cannot support it (and
    would thus oops).  Redefine SG_ALL to mean no sg table size
    preference, but use the single allocation (non chained) limit.  This
    also helps for drivers that use it to size an internal table.
    We'll do an opt in system later where truly chaining supporting
    drivers can define their sg_tablesize to be anything up to
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 include/scsi/scsi_host.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index d1299e9..530ff4c 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -6,6 +6,7 @@
 #include <linux/types.h>
 #include <linux/workqueue.h>
 #include <linux/mutex.h>
+#include <scsi/scsi.h>
 struct request_queue;
 struct block_device;
@@ -25,12 +26,15 @@ struct blk_queue_tags;
  * NONE: Self evident. Host adapter is not capable of scatter-gather.
  * ALL:         Means that the host adapter module can do scatter-gather,
  *      and that there is no limit to the size of the table to which
- *      we scatter/gather data.
+ *      we scatter/gather data.  The value we set here is the maximum
+ *      single element sglist.  To use chained sglists, the adapter
+ *      has to set a value beyond ALL (and correctly use the chain
+ *      handling API.
  * Anything else:  Indicates the maximum number of chains that can be
  *      used in one scatter-gather request.
 #define SG_NONE 0
-#define SG_ALL 0xff
 #define MODE_UNKNOWN 0x00
 #define MODE_INITIATOR 0x01
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to