kernel: stop masking signals in create_io_thread()
authorJens Axboe <axboe@kernel.dk>
Fri, 26 Mar 2021 15:05:22 +0000 (09:05 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Dec 2022 21:30:34 +0000 (14:30 -0700)
commit3ba2de08db37474986cabdd4e675b8e3bfc5df5a
treeedbe31a7ddf6b19070091909b8f6db197b69efaa
parentf757cc1efe0ec578f54dc857f1684dcd6541b464
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>
kernel/fork.c