diff options
author | Ching Huang <ching2048@areca.com.tw> | 2014-08-19 14:29:41 +0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-09-16 09:39:34 -0700 |
commit | 3df824aff935444601101cc329ebe3f52e126a4e (patch) | |
tree | 65d46e5879f6e012e528fef4f03f273365dc474f /drivers/scsi/arcmsr/arcmsr.h | |
parent | 61cda87f33be22828c3b52863da1c456ba108d37 (diff) | |
download | op-kernel-dev-3df824aff935444601101cc329ebe3f52e126a4e.zip op-kernel-dev-3df824aff935444601101cc329ebe3f52e126a4e.tar.gz |
arcmsr: limit max. number of SCSI command request
This patch limits the max. number of SCSI commmand request to avoid command
overflow.
Signed-off-by: Ching Huang <ching2048@areca.com.tw>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/arcmsr/arcmsr.h')
-rw-r--r-- | drivers/scsi/arcmsr/arcmsr.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h index 1c64b60..0ae0ce3 100644 --- a/drivers/scsi/arcmsr/arcmsr.h +++ b/drivers/scsi/arcmsr/arcmsr.h @@ -45,11 +45,12 @@ #include <linux/interrupt.h> struct device_attribute; /*The limit of outstanding scsi command that firmware can handle*/ -#define ARCMSR_MAX_OUTSTANDING_CMD 256 #ifdef CONFIG_XEN #define ARCMSR_MAX_FREECCB_NUM 160 +#define ARCMSR_MAX_OUTSTANDING_CMD 155 #else #define ARCMSR_MAX_FREECCB_NUM 320 +#define ARCMSR_MAX_OUTSTANDING_CMD 255 #endif #define ARCMSR_DRIVER_VERSION "v1.30.00.04-20140428" #define ARCMSR_SCSI_INITIATOR_ID 255 @@ -598,6 +599,7 @@ struct AdapterControlBlock #define FW_DEADLOCK 0x0010 atomic_t rq_map_token; atomic_t ante_token_value; + uint32_t maxOutstanding; int msix_vector_count; };/* HW_DEVICE_EXTENSION */ /* |