aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas.h
diff options
context:
space:
mode:
authorbo yang <bo.yang@lsi.com>2007-11-09 04:35:44 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-11 18:22:43 -0600
commit7343eb6570ae3b299e7b5185b139d8335ef60e9b (patch)
tree1d2c354b15e7ad00618fcc1c03404125f0aca9e0 /drivers/scsi/megaraid/megaraid_sas.h
parentb10c36a57552f03582c0ab3ece04f3cce791922d (diff)
downloadkernel_samsung_smdk4412-7343eb6570ae3b299e7b5185b139d8335ef60e9b.zip
kernel_samsung_smdk4412-7343eb6570ae3b299e7b5185b139d8335ef60e9b.tar.gz
kernel_samsung_smdk4412-7343eb6570ae3b299e7b5185b139d8335ef60e9b.tar.bz2
[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 9739023..c3575a3 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;