tasklets: Switch tasklet_disable() to the sleep wait variant
authorThomas Gleixner <tglx@linutronix.de>
Tue, 9 Mar 2021 08:42:17 +0000 (09:42 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 17 Mar 2021 15:34:07 +0000 (16:34 +0100)
 -- NOT FOR IMMEDIATE MERGING --

Now that all users of tasklet_disable() are invoked from sleepable context,
convert it to use tasklet_unlock_wait() which might sleep.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210309084242.726452321@linutronix.de
include/linux/interrupt.h

index 352db93..4777850 100644 (file)
@@ -711,8 +711,7 @@ static inline void tasklet_disable_in_atomic(struct tasklet_struct *t)
 static inline void tasklet_disable(struct tasklet_struct *t)
 {
        tasklet_disable_nosync(t);
-       /* Spin wait until all atomic users are converted */
-       tasklet_unlock_spin_wait(t);
+       tasklet_unlock_wait(t);
        smp_mb();
 }