lkml.org 
[lkml]   [2010]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 08/13] cciss: limit commands allocated on reset_devices
    From
    Date
    From: Stephen M. Cameron <scameron@beardog.cce.hp.com>

    This is to conserve memory in a memory-limited kdump scenario

    Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
    ---
    drivers/block/cciss.c | 5 +++++
    1 files changed, 5 insertions(+), 0 deletions(-)

    diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
    index 7741e3b..08cbee8 100644
    --- a/drivers/block/cciss.c
    +++ b/drivers/block/cciss.c
    @@ -4059,6 +4059,11 @@ static int __devinit cciss_find_cfgtables(ctlr_info_t *h)
    static void __devinit cciss_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. "


    \
     
     \ /
      Last update: 2010-10-08 22:03    [W:0.022 / U:60.544 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site