io_uring: handle signals for IO threads like a normal thread
authorJens Axboe <axboe@kernel.dk>
Fri, 26 Mar 2021 00:16:06 +0000 (18:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 27 Mar 2021 20:09:07 +0000 (14:09 -0600)
commitdbe1bdbb39db7dfe80a903f0d267f62cf3f093d2
treec79fb60a63bb9f9fa128bad28e8c29de7dafd717
parent10442994ba195efef6fdcc0c3699e4633cb5161b
io_uring: handle signals for IO threads like a normal thread

We go through various hoops to disallow signals for the IO threads, but
there's really no reason why we cannot just allow them. The IO threads
never return to userspace like a normal thread, and hence don't go through
normal signal processing. Instead, just check for a pending signal as part
of the work loop, and call get_signal() to handle it for us if anything
is pending.

With that, we can support receiving signals, including special ones like
SIGSTOP.

Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
fs/io_uring.c