]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 02:19:42 +0000 (19:19 -0700)
commit9909e61c100621792be24cc255253cf8352ed925
treef5a41d88216ec28c041f5c4a8400e6503af7a7da
parent81845c2f61bf7520bd6a08a7aa571bfe46698b83
ipmi/watchdog: fix watchdog timeout set on reboot

commit 860f01e96981a68553f3ca49f574ff14fe955e72 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/ipmi/ipmi_watchdog.c