aboutsummaryrefslogtreecommitdiffstats
path: root/features/rt/tasklets-Switch-tasklet_disable-to-the-sleep-wait-va.patch
diff options
context:
space:
mode:
Diffstat (limited to 'features/rt/tasklets-Switch-tasklet_disable-to-the-sleep-wait-va.patch')
-rw-r--r--features/rt/tasklets-Switch-tasklet_disable-to-the-sleep-wait-va.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/features/rt/tasklets-Switch-tasklet_disable-to-the-sleep-wait-va.patch b/features/rt/tasklets-Switch-tasklet_disable-to-the-sleep-wait-va.patch
new file mode 100644
index 00000000..22004d44
--- /dev/null
+++ b/features/rt/tasklets-Switch-tasklet_disable-to-the-sleep-wait-va.patch
@@ -0,0 +1,34 @@
+From 608657964209120854b4be1d11f6d052f34465a9 Mon Sep 17 00:00:00 2001
+From: Thomas Gleixner <tglx@linutronix.de>
+Date: Tue, 9 Mar 2021 09:42:17 +0100
+Subject: [PATCH 054/191] 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>
+Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+---
+ include/linux/interrupt.h | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
+index d6876e1aa6c1..3b56b73deca2 100644
+--- a/include/linux/interrupt.h
++++ b/include/linux/interrupt.h
+@@ -707,8 +707,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();
+ }
+
+--
+2.19.1
+