diff options
author | Mike Miller <mike.miller@hp.com> | 2006-12-06 23:35:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:29 -0500 |
commit | f880632f963c3611d096d9373d16663c076310c7 (patch) | |
tree | f1e287ce43b1dd08cb7d5f8be661f48d99b902ed /drivers/block/cciss.h | |
parent | 4ff9a9a4baff2627d7bcf65d0ec07d647bc1ad29 (diff) |
[PATCH] cciss: increase number of commands on controller
Remove #define NR_CMDS and replace it w/hba[i]->nr_cmds. Most Smart Array
controllers can support up to 1024 commands but the E200 family can only
support 128. To prevent annoying "fifo full" messages we define nr_cmds on a
per controller basis by adding it the product table.
Signed-off-by: Mike Miller <mike.miller@hp.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block/cciss.h')
-rw-r--r-- | drivers/block/cciss.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/cciss.h b/drivers/block/cciss.h index 562235c1445a..0d765f9237be 100644 --- a/drivers/block/cciss.h +++ b/drivers/block/cciss.h | |||
@@ -60,6 +60,7 @@ struct ctlr_info | |||
60 | __u32 board_id; | 60 | __u32 board_id; |
61 | void __iomem *vaddr; | 61 | void __iomem *vaddr; |
62 | unsigned long paddr; | 62 | unsigned long paddr; |
63 | int nr_cmds; /* Number of commands allowed on this controller */ | ||
63 | CfgTable_struct __iomem *cfgtable; | 64 | CfgTable_struct __iomem *cfgtable; |
64 | int interrupts_enabled; | 65 | int interrupts_enabled; |
65 | int major; | 66 | int major; |
@@ -282,6 +283,7 @@ struct board_type { | |||
282 | __u32 board_id; | 283 | __u32 board_id; |
283 | char *product_name; | 284 | char *product_name; |
284 | struct access_method *access; | 285 | struct access_method *access; |
286 | int nr_cmds; /* Max cmds this kind of ctlr can handle. */ | ||
285 | }; | 287 | }; |
286 | 288 | ||
287 | #define CCISS_LOCK(i) (&hba[i]->lock) | 289 | #define CCISS_LOCK(i) (&hba[i]->lock) |