• Tejun Heo's avatar
    dm-verity: Convert from tasklet to BH workqueue · c375b223
    Tejun Heo authored
    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-verity from tasklet to BH workqueue. It
    backfills tasklet code that was removed with commit 0a9bab39
    ("dm-crypt, dm-verity: disable tasklets") and tweaks to use BH
    workqueue (and does some renaming).
    
    This is a minimal conversion which doesn't rename the related names
    including the "try_verify_in_tasklet" option. If this patch is applied, a
    follow-up patch would be necessary. I couldn't decide whether the option
    name would need to be updated too.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    [snitzer: rename 'use_tasklet' to 'use_bh_wq' and 'in_tasklet' to 'in_bh']
    Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
    c375b223
dm-verity-target.c 39.3 KB