]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kernel: don't call do_exit() for PF_IO_WORKER threads
authorJens Axboe <axboe@kernel.dk>
Fri, 26 Mar 2021 14:57:10 +0000 (08:57 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:39:23 +0000 (11:39 +0100)
commit831cb78a2a5e86fe705ef4e3095c7cbc587c6a57
treeef42f59db847f9b00789aaf2178f370ce3e302bd
parent9ded44b69c711455dbbddf6ec39b77ac41e4eed7
kernel: don't call do_exit() for PF_IO_WORKER threads

[ Upstream commit 10442994ba195efef6fdcc0c3699e4633cb5161b ]

Right now we're never calling get_signal() from PF_IO_WORKER threads, but
in preparation for doing so, don't handle a fatal signal for them. The
workers have state they need to cleanup when exiting, so just return
instead of calling do_exit() on their behalf. The threads themselves will
detect a fatal signal and do proper shutdown.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/signal.c