summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.h
diff options
context:
space:
mode:
authorRobert Elliott <elliott@hp.com>2015-01-23 23:43:41 +0100
committerJames Bottomley <JBottomley@Parallels.com>2015-02-02 18:57:41 +0100
commit33811026a0a4208dd5725183d37fc92d5e88b0a2 (patch)
tree3ee9c60da0de30a40ea02be9db13b5c75fcb0ea4 /drivers/scsi/hpsa.h
parenthpsa: fix race between abort handler and main i/o path (diff)
downloadlinux-33811026a0a4208dd5725183d37fc92d5e88b0a2.tar.xz
linux-33811026a0a4208dd5725183d37fc92d5e88b0a2.zip
hpsa: optimize cmd_alloc function by remembering last allocation
Empirically, this improves performance slightly (~2% max IOPS) by allowing cmd_alloc to remember where it left off searching for free commands between calls instead of always starting its search at command 0. Reviewed-by: Scott Teel <scott.teel@pmcs.com> Signed-off-by: Robert Elliott <elliott@hp.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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index 679e4d2272e0..981479a13935 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -133,6 +133,7 @@ struct ctlr_info {
struct CfgTable __iomem *cfgtable;
int interrupts_enabled;
int max_commands;
+ int last_allocation;
atomic_t commands_outstanding;
# define PERF_MODE_INT 0
# define DOORBELL_INT 1