summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas.h
diff options
context:
space:
mode:
authorSumant Patro <sumantp@lsil.com>2006-05-30 12:03:37 -0700
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-06-06 10:57:18 -0400
commite4a082c7c1f9a7b11fece6918e7ee5519b39ac46 (patch)
tree8aa1d865b2ddfb9b897e30e97dede3268c00b582 /drivers/scsi/megaraid/megaraid_sas.h
parentf70e9c5f91f1d2d9ce79dc45221540e25b4e4ac0 (diff)
downloadblackbird-op-linux-e4a082c7c1f9a7b11fece6918e7ee5519b39ac46.tar.gz
blackbird-op-linux-e4a082c7c1f9a7b11fece6918e7ee5519b39ac46.zip
[SCSI] megaraid_sas: switch fw_outstanding to an atomic_t
This patch( originally submitted by Christoph Hellwig) removes instance_lock and changes fw_outstanding variable data type to atomic_t. Signed-off-by: Sumant Patro <Sumant.Patro@lsil.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas.h')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h
index 89639f0c38ef..927d6ffef05f 100644
--- a/drivers/scsi/megaraid/megaraid_sas.h
+++ b/drivers/scsi/megaraid/megaraid_sas.h
@@ -1077,9 +1077,8 @@ struct megasas_instance {
struct pci_dev *pdev;
u32 unique_id;
- u32 fw_outstanding;
+ atomic_t fw_outstanding;
u32 hw_crit_error;
- spinlock_t instance_lock;
struct megasas_instance_template *instancet;
};
OpenPOWER on IntegriCloud