]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kernel: stop masking signals in create_io_thread()
authorJens Axboe <axboe@kernel.dk>
Fri, 26 Mar 2021 15:05:22 +0000 (09:05 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:39:23 +0000 (11:39 +0100)
commit9ded44b69c711455dbbddf6ec39b77ac41e4eed7
treeedbe31a7ddf6b19070091909b8f6db197b69efaa
parentf0a5f0dc0131c6483908601f6e4907befb609c97
kernel: stop masking signals in create_io_thread()

[ Upstream commit b16b3855d89fba640996fefdd3a113c0aa0e380d ]

This is racy - move the blocking into when the task is created and
we're marking it as PF_IO_WORKER anyway. The IO threads are now
prepared to handle signals like SIGSTOP as well, so clear that from
the mask to allow proper stopping of IO threads.

Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Reported-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/fork.c