From: Jens Axboe Date: Wed, 1 Sep 2021 17:18:41 +0000 (-0600) Subject: io-wq: only exit on fatal signals X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=15e20db2e0cecce0bfc6a67b69e55020fe9cda00;p=linux.git 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 --- diff --git a/fs/io-wq.c b/fs/io-wq.c index 8cba77a937a12..027eb4e13e3b6 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -575,7 +575,9 @@ loop: if (!get_signal(&ksig)) continue; - break; + if (fatal_signal_pending(current)) + break; + continue; } if (ret) continue;