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)
commitd1b29b9742a2a9a7931dcd59615a27ee9cf2c804
tree6f733049a967ae0df8aa660ea4a27ef3ee0d2248
parent252e30c1e7d847c09d9480e4b17ba0485059f576
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