summaryrefslogtreecommitdiff
path: root/drivers/scsi/hpsa.h
diff options
context:
space:
mode:
authorDon Brace <don.brace@pmcs.com>2015-01-24 01:43:46 +0300
committerJames Bottomley <JBottomley@Parallels.com>2015-02-02 20:57:41 +0300
commit34f0c6277c686b191936cc321faebd15b28f9ece (patch)
treef2ef7d5a9f24993e1b6bd86ac667ae31d3ecb289 /drivers/scsi/hpsa.h
parent33811026a0a4208dd5725183d37fc92d5e88b0a2 (diff)
downloadlinux-34f0c6277c686b191936cc321faebd15b28f9ece.tar.xz
hpsa: count passthru cmds with atomics, not a spin locked int
Performance enhancement. Remove spin_locks from the driver. Reviewed-by: Scott Teel <scott.teel@pmcs.com> Signed-off-by: Don Brace <don.brace@pmcs.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/hpsa.h')
-rw-r--r--drivers/scsi/hpsa.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index 981479a13935..1856445f883a 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -183,8 +183,7 @@ struct ctlr_info {
/* cap concurrent passthrus at some reasonable maximum */
#define HPSA_MAX_CONCURRENT_PASSTHRUS (10)
- spinlock_t passthru_count_lock; /* protects passthru_count */
- int passthru_count;
+ atomic_t passthru_cmds_avail;
/*
* Performant mode completion buffers