]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7722e4976ff45f91af41e4953654194356a1753
treec79fb60a63bb9f9fa128bad28e8c29de7dafd717
parentcb70d0ca65d6a6ea23837206bd830c64bdc135f5
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