aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2010-10-22 15:21:17 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-10-23 12:45:08 -0400
commit186fb9cf6a1154bc9b071adfd72fcf256285eb26 (patch)
tree8d32facb996b7140aeb2abed2a52187a321f3f51 /drivers/block
parentf442e64b93e16dba6bf9ab7e8dc5a90f6bcd8a85 (diff)
cciss: limit commands allocated on reset_devices
This is to conserve memory in a memory-limited kdump scenario Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/cciss.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 2e547bddc5a7..9e761b994b4c 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -4079,6 +4079,11 @@ static int __devinit cciss_find_cfgtables(ctlr_info_t *h)
4079static void __devinit cciss_get_max_perf_mode_cmds(struct ctlr_info *h) 4079static void __devinit cciss_get_max_perf_mode_cmds(struct ctlr_info *h)
4080{ 4080{
4081 h->max_commands = readl(&(h->cfgtable->MaxPerformantModeCommands)); 4081 h->max_commands = readl(&(h->cfgtable->MaxPerformantModeCommands));
4082
4083 /* Limit commands in memory limited kdump scenario. */
4084 if (reset_devices && h->max_commands > 32)
4085 h->max_commands = 32;
4086
4082 if (h->max_commands < 16) { 4087 if (h->max_commands < 16) {
4083 dev_warn(&h->pdev->dev, "Controller reports " 4088 dev_warn(&h->pdev->dev, "Controller reports "
4084 "max supported commands of %d, an obvious lie. " 4089 "max supported commands of %d, an obvious lie. "