]> git.sesse.net Git - bcachefs-tools-debian/commit
Fix refcount bug in blkdev and timer kthreads.
authorJustin Husted <sigstop@gmail.com>
Fri, 8 Nov 2019 00:44:04 +0000 (16:44 -0800)
committerJustin Husted <sigstop@gmail.com>
Fri, 8 Nov 2019 00:44:04 +0000 (16:44 -0800)
commit76e147d0a937d6df65491cc5c559c13d38b82d83
tree55f61ca5f52d79deccf8ace094ed588c87dce448
parentff695c5afb04ed619de5ff272f6b2bb2f00c209d
Fix refcount bug in blkdev and timer kthreads.

The shutdown code in d79d57e and b20e160 had a race condition during
shutdown, due to not owning a reference on the associated task_struct
while the associated threads shut themselves down.

Patch over this by taking an appropriate reference.

Signed-off-by: Justin Husted <sigstop@gmail.com>
linux/blkdev.c
linux/timer.c