summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas.h
diff options
context:
space:
mode:
authorbo yang <bo.yang@lsi.com>2007-11-09 10:35:44 +0100
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-12 01:22:43 +0100
commit7343eb6570ae3b299e7b5185b139d8335ef60e9b (patch)
tree1d2c354b15e7ad00618fcc1c03404125f0aca9e0 /drivers/scsi/megaraid/megaraid_sas.h
parent[SCSI] megaraid_sas: use unsigned long for sense_buff ptr (diff)
downloadlinux-7343eb6570ae3b299e7b5185b139d8335ef60e9b.tar.xz
linux-7343eb6570ae3b299e7b5185b139d8335ef60e9b.zip
[SCSI] megaraid_sas: call cmd completion from reset
Driver will call cmd completion routine from Reset path without waiting for cmd completion from isr context. Signed-off-by: Bo Yang <bo.yang@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas.h')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h
index 9739023a222c..c3575a304c6a 100644
--- a/drivers/scsi/megaraid/megaraid_sas.h
+++ b/drivers/scsi/megaraid/megaraid_sas.h
@@ -1084,6 +1084,8 @@ struct megasas_instance {
struct megasas_cmd **cmd_list;
struct list_head cmd_pool;
spinlock_t cmd_pool_lock;
+ /* used to synch producer, consumer ptrs in dpc */
+ spinlock_t completion_lock;
struct dma_pool *frame_dma_pool;
struct dma_pool *sense_dma_pool;