backtracetest: Convert from tasklet to BH workqueue
authorTejun Heo <tj@kernel.org>
Sun, 4 Feb 2024 21:34:28 +0000 (11:34 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 5 Feb 2024 23:22:34 +0000 (13:22 -1000)
commit7245d24f874d781cf3f1530e6d24e1e0eba4269a
treebac443bc44aac60a304e1bf6ecc0326b9893583b
parent8eb17dc1a6b5db7e89681f59285242af8d182f95
backtracetest: Convert from tasklet to BH workqueue

The only generic interface to execute asynchronously in the BH context is
tasklet; however, it's marked deprecated and has some design flaws. To
replace tasklets, BH workqueue support was recently added. A BH workqueue
behaves similarly to regular workqueues except that the queued work items
are executed in the BH context.

This patch converts backtracetest from tasklet to BH workqueue.

- Replace "irq" with "bh" in names and message to better reflect what's
  happening.

- Replace completion usage with a flush_work() call.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Arjan van de Ven <arjan@linux.intel.com>
kernel/backtracetest.c