aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-mod-log.c
diff options
context:
space:
mode:
authorJoel Colledge <joel.colledge@linbit.com>2024-05-06 09:25:23 +0200
committerMike Snitzer <snitzer@kernel.org>2024-05-09 09:10:58 -0400
commitd14646f23300a5fc85be867bafdc0702c2002789 (patch)
tree75bf34e9eb286c4790442352fbf17adf757039b0 /fs/btrfs/tree-mod-log.c
parent8d24790ed08ab4e619ce58ed4a1b353ab77ffdc5 (diff)
dm-delay: fix hung task introduced by kthread mode
If the worker thread is not woken due to a bio, then it is not woken at all. This causes the hung task check to trigger. This occurs, for instance, when no bios are submitted. Also when a delay of 0 is configured, delay_bio() returns without waking the worker. Prevent the hung task check from triggering by creating the thread with kthread_run() instead of using kthread_create() directly. Fixes: 70bbeb29fab0 ("dm delay: for short delays, use kthread instead of timers and wq") Signed-off-by: Joel Colledge <joel.colledge@linbit.com> Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions