ipmi: use locks on watchdog timeout set on reboot
authorCorey Minyard <cminyard@mvista.com>
Wed, 28 Mar 2012 21:42:50 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Mar 2012 00:14:36 +0000 (17:14 -0700)
commit423a5bb49ec530ec8bbfc73fd2ded83da8e58684
treed70f4fedba821f80b5b4c2511fcf36aec07e9d03
parentf60adf42ad55405d1b17e9e5c33fdb63f1eb8861
ipmi: use locks on watchdog timeout set on reboot

The IPMI watchdog timer clears or extends the timer on reboot/shutdown.
It was using the non-locking routine for setting the watchdog timer, but
this was causing race conditions.  Instead, use the locking version to
avoid the races.  It seems to work fine.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_watchdog.c