diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-03-09 09:42:17 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-03-17 16:34:07 +0100 |
commit | 6fd4e861250b5c89ad460a9f265caeb1bbbfc323 (patch) | |
tree | 1d9ce88a61d5e8dd901fc23769202d9f1b294009 /include/linux/interrupt.h | |
parent | f339fc16fba0167d67c4026678ef4c405bca3085 (diff) | |
download | lwn-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.h | 3 |
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(); } |