ipmi: don't grab locks in run-to-completion mode
authorKonstantin Baydarov <kbaidarov@ru.mvista.com>
Tue, 29 Apr 2008 08:01:03 +0000 (01:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:14 +0000 (08:06 -0700)
commit5956dce1485efe3816febc24aa52490dcb2be837
tree292231b7783baaf980a65eacb199a0384446f566
parentbda4c30aa6f7dc1483f39ea1dfe37bcab8a96207
ipmi: don't grab locks in run-to-completion mode

This patch prevents deadlocks in IPMI panic handler caused by msg_lock
in smi_info structure and waiting_msgs_lock in ipmi_smi structure.

[cminyard@mvista.com: remove unnecessary memory barriers]
Signed-off-by: Konstantin Baydarov <kbaidarov@ru.mvista.com>
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_msghandler.c
drivers/char/ipmi/ipmi_si_intf.c