drivers/ipmi: Replace synchronize_sched() with synchronize_rcu()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 6 Nov 2018 01:00:58 +0000 (17:00 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 27 Nov 2018 17:21:36 +0000 (09:21 -0800)
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 <paulmck@linux.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <openipmi-developer@lists.sourceforge.net>
Acked-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_si_intf.c

index 677618e6f1f72ffec031b7ee0e698e4d690bf793..dc8603d343209d384d18695ae406faf7e24cc1a7 100644 (file)
@@ -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