From d53303edb0057fb16c1c8a428ce562fa8764a7bd Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 5 Feb 2004 16:50:24 -0800 Subject: [PATCH] [PATCH] Set CCISS driver VM read-ahead to 1024K From: Torben Mathiasen After a lot of testing and measuring we decided to increase the read-ahead for the CISS driver in 2.6 to 1MB. --- drivers/block/cciss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index d4f508644b1f2..4c3ace285a5af 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -103,7 +103,7 @@ static struct board_type products[] = { /*define how many times we will try a command because of bus resets */ #define MAX_CMD_RETRIES 3 -#define READ_AHEAD 128 +#define READ_AHEAD 256 #define NR_CMDS 384 /* #commands that can be outstanding */ #define MAX_CTLR 8 @@ -2501,6 +2501,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev, if (!q) goto clean4; + q->backing_dev_info.ra_pages = READ_AHEAD; hba[i]->queue = q; q->queuedata = hba[i]; -- 2.53.0