projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
270d05d
)
[SCSI] hpsa: limit commands allocated on reset_devices
author
Stephen M. Cameron
<
[email protected]
>
Thu, 6 Jan 2011 20:48:13 +0000
(14:48 -0600)
committer
James Bottomley
<
[email protected]
>
Mon, 24 Jan 2011 17:29:58 +0000
(11:29 -0600)
This is to conserve memory in a memory-limited kdump scenario
Signed-off-by: Stephen M. Cameron <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/hpsa.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/hpsa.c
b/drivers/scsi/hpsa.c
index 82b94e2c745bdb6354d67ff3669a6c70ee5f7926..688b24333a6fcaf68c51120e6b12c56faa224eb8 100644
(file)
--- a/
drivers/scsi/hpsa.c
+++ b/
drivers/scsi/hpsa.c
@@
-3470,6
+3470,11
@@
static int __devinit hpsa_find_cfgtables(struct ctlr_info *h)
static void __devinit hpsa_get_max_perf_mode_cmds(struct ctlr_info *h)
{
h->max_commands = readl(&(h->cfgtable->MaxPerformantModeCommands));
+
+ /* Limit commands in memory limited kdump scenario. */
+ if (reset_devices && h->max_commands > 32)
+ h->max_commands = 32;
+
if (h->max_commands < 16) {
dev_warn(&h->pdev->dev, "Controller reports "
"max supported commands of %d, an obvious lie. "