]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi/watchdog: fix watchdog timeout set on reboot
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Fri, 5 May 2017 19:07:33 +0000 (21:07 +0200)
committerCorey Minyard <cminyard@mvista.com>
Mon, 8 May 2017 19:01:42 +0000 (14:01 -0500)
commit022c09c0ff970e8e2ab75bd0d81153069f7ddc5b
treeb25c9368ca24695bbcd8e4ccaf8d4fcff3e969de
parentdc3828ac8ccbbeb92d5647c5ca49c8e44ee1e531
ipmi/watchdog: fix watchdog timeout set on reboot

systemd by default starts watchdog on reboot and sets the timer to
ShutdownWatchdogSec=10min.  Reboot handler in ipmi_watchdog than reduces
the timer to 120s which is not enough time to boot a Xen machine with
a lot of RAM.  As a result the machine is rebooted the second time
during the long run of (XEN) Scrubbing Free RAM.....

Fix this by setting the timer to 120s only if it was previously
set to a low value.

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_watchdog.c