Commit d53303ed authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

[PATCH] Set CCISS driver VM read-ahead to 1024K

From: Torben Mathiasen <torben.mathiasen@hp.com>

After a lot of testing and measuring we decided to increase the read-ahead
for the CISS driver in 2.6 to 1MB.
parent 14484915
...@@ -103,7 +103,7 @@ static struct board_type products[] = { ...@@ -103,7 +103,7 @@ static struct board_type products[] = {
/*define how many times we will try a command because of bus resets */ /*define how many times we will try a command because of bus resets */
#define MAX_CMD_RETRIES 3 #define MAX_CMD_RETRIES 3
#define READ_AHEAD 128 #define READ_AHEAD 256
#define NR_CMDS 384 /* #commands that can be outstanding */ #define NR_CMDS 384 /* #commands that can be outstanding */
#define MAX_CTLR 8 #define MAX_CTLR 8
...@@ -2501,6 +2501,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev, ...@@ -2501,6 +2501,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
if (!q) if (!q)
goto clean4; goto clean4;
q->backing_dev_info.ra_pages = READ_AHEAD;
hba[i]->queue = q; hba[i]->queue = q;
q->queuedata = hba[i]; q->queuedata = hba[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment