summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pm8001/pm8001_sas.h
diff options
context:
space:
mode:
authorTomas Henzl <thenzl@redhat.com>2014-07-09 13:51:01 +0200
committerChristoph Hellwig <hch@lst.de>2014-07-25 23:17:04 +0200
commit646cdf0083e3d4a9b995f37b72c3c8a22d9307de (patch)
treef0730421a40f2037a840489a8afdce0e4b2c1598 /drivers/scsi/pm8001/pm8001_sas.h
parentpm8001: honor return value (diff)
downloadlinux-646cdf0083e3d4a9b995f37b72c3c8a22d9307de.tar.xz
linux-646cdf0083e3d4a9b995f37b72c3c8a22d9307de.zip
pm8001: add a new spinlock to protect the CCB
Patch adds a new spinlock to protect the ccb management. It may happen that concurrent threads become the same tag value from the 'alloc' function', the spinlock prevents this situation. Signed-off-by: Tomas Henzl <thenzl@redhat.com> Acked-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com> Acked-by: Jack Wang <xjtuwjp@gmail.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_sas.h')
-rw-r--r--drivers/scsi/pm8001/pm8001_sas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/pm8001/pm8001_sas.h b/drivers/scsi/pm8001/pm8001_sas.h
index 14106adec009..f6b2ac59dae4 100644
--- a/drivers/scsi/pm8001/pm8001_sas.h
+++ b/drivers/scsi/pm8001/pm8001_sas.h
@@ -475,6 +475,7 @@ struct pm8001_hba_info {
struct list_head list;
unsigned long flags;
spinlock_t lock;/* host-wide lock */
+ spinlock_t bitmap_lock;
struct pci_dev *pdev;/* our device */
struct device *dev;
struct pm8001_hba_memspace io_mem[6];