]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: Fix a memory ordering issue
authorCorey Minyard <cminyard@mvista.com>
Thu, 19 Feb 2015 14:25:49 +0000 (08:25 -0600)
committerCorey Minyard <cminyard@mvista.com>
Fri, 20 Feb 2015 02:58:42 +0000 (20:58 -0600)
commit6af97976b986104e08850c784d78d9c386159be9
tree8fc87a38ad0b05994db7eefcb58ea4ac085deb25
parentf8461a5c88941117f1029bdd8183872be3f8e8d0
ipmi: Fix a memory ordering issue

From a locking point of view it is safe to check waiting_msg without
a lock, but there is a memory ordering issue that causes it to
possibly not be set right when viewed from another processor.  We are
already claiming a lock right after that, move the check to inside
the lock to enforce the memory ordering.

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