summaryrefslogtreecommitdiff
path: root/include/linux/interrupt.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-03-09 09:42:17 +0100
committerThomas Gleixner <tglx@linutronix.de>2021-03-17 16:34:07 +0100
commit6fd4e861250b5c89ad460a9f265caeb1bbbfc323 (patch)
tree1d9ce88a61d5e8dd901fc23769202d9f1b294009 /include/linux/interrupt.h
parentf339fc16fba0167d67c4026678ef4c405bca3085 (diff)
downloadlwn-6fd4e861250b5c89ad460a9f265caeb1bbbfc323.tar.gz
lwn-6fd4e861250b5c89ad460a9f265caeb1bbbfc323.zip
tasklets: Switch tasklet_disable() to the sleep wait variant
-- 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
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r--include/linux/interrupt.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index 352db93c2eed..4777850a6dc7 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -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();
}