[bootlin/training-materials updates] master: debugging: slides: mention tasklets deprecation and BH workqueues (00a7578e)

Alexis Lothoré alexis.lothore at bootlin.com
Wed Aug 14 13:18:27 CEST 2024


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/00a7578ec44626636f2e0f1e3011a027b57a5754

>---------------------------------------------------------------

commit 00a7578ec44626636f2e0f1e3011a027b57a5754
Author: Alexis Lothoré <alexis.lothore at bootlin.com>
Date:   Wed Jul 17 12:06:55 2024 +0200

    debugging: slides: mention tasklets deprecation and BH workqueues
    
    Tasklets are being slowly removed from the kernel, so it does not make
    sense anymore to mention it as the default solution to run code in softirq.
    Commit 4cb1ef64609f ("workqueue: Implement BH workqueues to eventually
    replace tasklets") in upstream kernel has introduced the BH workqueue, and
    many commits follow to convert tasklets already present in the kernel to
    BH workqueues.
    
    See also https://lwn.net/Articles/960041/ for details about why BH
    workqueues are being introduced.
    
    Signed-off-by: Alexis Lothoré <alexis.lothore at bootlin.com>


>---------------------------------------------------------------

00a7578ec44626636f2e0f1e3011a027b57a5754
 .../debugging-linux-application-stack.tex                           | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/slides/debugging-linux-application-stack/debugging-linux-application-stack.tex b/slides/debugging-linux-application-stack/debugging-linux-application-stack.tex
index f31bf83b..3c713cd1 100644
--- a/slides/debugging-linux-application-stack/debugging-linux-application-stack.tex
+++ b/slides/debugging-linux-application-stack/debugging-linux-application-stack.tex
@@ -426,8 +426,10 @@ root          11       2 [rcu_tasks_kthread]          TS
       \item Same context as executing interrupt handler so sleeping is not
             allowed.
     \end{itemize}
-    \item Tasklets are using softirqs to execute their work so they run in the
-          same context and the same constraints are applied.
+    \item Anyone wanting to run some code in softirq context should likely not
+    create its own but prefer some entities implemented on top of it. There are
+    for example tasklets, and the BH workqueues (Bottom Half workqueues) which
+    aim to replace tasklets since 6.9.
   \end{itemize}
 \end{frame}
 




More information about the training-materials-updates mailing list