OSDN Git Service

io-wq: only exit on fatal signals
authorJens Axboe <axboe@kernel.dk>
Wed, 1 Sep 2021 17:18:41 +0000 (11:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Sep 2021 18:35:32 +0000 (12:35 -0600)
commit15e20db2e0cecce0bfc6a67b69e55020fe9cda00
tree74de1572a73f8dd3630822fa4e89ea41888ec8d2
parentf95dc207b93da9c88ddbb7741ec3730c6657b88e
io-wq: only exit on fatal signals

If the application uses io_uring and also relies heavily on signals
for communication, that can cause io-wq workers to spuriously exit
just because the parent has a signal pending. Just ignore signals
unless they are fatal.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c