diff options
author | Tejun Heo <tj@kernel.org> | 2024-01-30 12:11:54 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-03-02 18:30:36 +0300 |
commit | fb6ad4aec1d02079250c5935b6946b216e048434 (patch) | |
tree | b2c31d8062a41f8e4d28d2479be18067e4b950ed /tools/perf/scripts/python/stackcollapse.py | |
parent | c6df327501b9dc064a419f25daf99eebdf8fc815 (diff) | |
download | linux-fb6ad4aec1d02079250c5935b6946b216e048434.tar.xz |
dm-crypt: 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 commit converts dm-crypt from tasklet to BH workqueue. It
backfills tasklet code that was removed with commit 0a9bab391e33
("dm-crypt, dm-verity: disable tasklets") and tweaks to use BH
workqueue.
Like a regular workqueue, a BH workqueue allows freeing the currently
executing work item. Converting from tasklet to BH workqueue removes the
need for deferring bio_endio() again to a work item, which was buggy anyway.
I tested this lightly with "--perf-no_read_workqueue
--perf-no_write_workqueue" + some code modifications, but would really
-appreciate if someone who knows the code base better could take a look.
Signed-off-by: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/82b964f0-c2c8-a2c6-5b1f-f3145dc2c8e5@redhat.com
[snitzer: rebase ontop of commit 0a9bab391e33 reduced this commit's changes]
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions