Commit-ID:  17c0eb74151ead3a7068e1691998de9950e91a08
Gitweb:     https://git.kernel.org/tip/17c0eb74151ead3a7068e1691998de9950e91a08
Author:     Paul E. McKenney <[email protected]>
AuthorDate: Mon, 5 Nov 2018 17:00:58 -0800
Committer:  Paul E. McKenney <[email protected]>
CommitDate: Tue, 27 Nov 2018 09:21:36 -0800

drivers/ipmi: Replace synchronize_sched() with synchronize_rcu()

Now that synchronize_rcu() waits for preempt-disable regions of code
as well as RCU read-side critical sections, synchronize_sched() can be
replaced by synchronize_rcu().  This commit therefore makes this change.

Signed-off-by: Paul E. McKenney <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: <[email protected]>
Acked-by: Corey Minyard <[email protected]>
---
 drivers/char/ipmi/ipmi_si_intf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index 677618e6f1f7..dc8603d34320 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -2187,7 +2187,7 @@ static void shutdown_smi(void *send_info)
         * handlers might have been running before we freed the
         * interrupt.
         */
-       synchronize_sched();
+       synchronize_rcu();
 
        /*
         * Timeouts are stopped, now make sure the interrupts are off


_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to