]> 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)
commita4791c486c18c7ea758121857b80e9b1eda66a27
treec79fb60a63bb9f9fa128bad28e8c29de7dafd717
parent3e3c1040a2188c8442042e7bf84c5c263f822649
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