]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi:watchdog: Rework locking and handling
authorCorey Minyard <cminyard@mvista.com>
Wed, 28 Mar 2018 16:35:47 +0000 (11:35 -0500)
committerCorey Minyard <cminyard@mvista.com>
Wed, 18 Apr 2018 15:22:44 +0000 (10:22 -0500)
commitc400cc86449a1858c473e3ffa5c60b847bf3d401
tree6f733049a967ae0df8aa660ea4a27ef3ee0d2248
parentd6c5ad1ba4897ed8511f93ee682117d398b8bebd
ipmi:watchdog: Rework locking and handling

Simplify things by creating one set of message handling data for
setting the watchdog and doing a heartbeat.  Rework the locking
to avoid some (probably not very important) races and to avoid
a fairly unlikely infinite recursion.

Get rid of ipmi_ignore_heartbeat, it wasn't used, and use
watchdog_user to tell if we have a working IPMI device below
us.

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