Commit 15e20db2 authored by Jens Axboe's avatar Jens Axboe

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: default avatarJens Axboe <axboe@kernel.dk>
parent f95dc207
...@@ -575,7 +575,9 @@ static int io_wqe_worker(void *data) ...@@ -575,7 +575,9 @@ static int io_wqe_worker(void *data)
if (!get_signal(&ksig)) if (!get_signal(&ksig))
continue; continue;
break; if (fatal_signal_pending(current))
break;
continue;
} }
if (ret) if (ret)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment