From: Corey Minyard Remove some unnecessary barriers. Signed-off-by: Corey Minyard Signed-off-by: Andrew Morton --- drivers/char/ipmi/ipmi_msghandler.c | 2 -- 1 file changed, 2 deletions(-) diff -puN drivers/char/ipmi/ipmi_msghandler.c~ipmi-dont-grab-locks-in-run-to-completion-mode-fix drivers/char/ipmi/ipmi_msghandler.c --- a/drivers/char/ipmi/ipmi_msghandler.c~ipmi-dont-grab-locks-in-run-to-completion-mode-fix +++ a/drivers/char/ipmi/ipmi_msghandler.c @@ -3511,7 +3511,6 @@ void ipmi_smi_msg_received(ipmi_smi_t /* To preserve message order, if the list is not empty, we tack this message onto the end of the list. */ run_to_completion = intf->run_to_completion; - barrier(); if (!run_to_completion) spin_lock_irqsave(&intf->waiting_msgs_lock, flags); if (!list_empty(&intf->waiting_msgs)) { @@ -3528,7 +3527,6 @@ void ipmi_smi_msg_received(ipmi_smi_t /* Could not handle the message now, just add it to a list to handle later. */ run_to_completion = intf->run_to_completion; - barrier(); if (!run_to_completion) spin_lock_irqsave(&intf->waiting_msgs_lock, flags); list_add_tail(&msg->link, &intf->waiting_msgs); _