]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: ensure we exit if thread group is exiting
authorJens Axboe <axboe@kernel.dk>
Tue, 21 Sep 2021 14:24:57 +0000 (08:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Sep 2021 16:24:34 +0000 (10:24 -0600)
commit0dd17658256c61df11f569156a018dcee3ea9a90
tree85e994e7b72db03c4e0fa8a947b7c63f694c06bc
parentfa5d4460cfe6a4ab811a36d49fe44ccb61944b70
io-wq: ensure we exit if thread group is exiting

Dave reports that a coredumping workload gets stuck in 5.15-rc2, and
identified the culprit in the Fixes line below. The problem is that
relying solely on fatal_signal_pending() to gate whether to exit or not
fails miserably if a process gets eg SIGILL sent. Don't exclusively
rely on fatal signals, also check if the thread group is exiting.

Fixes: 7f85f4d0ab74 ("io-wq: only exit on fatal signals")
Reported-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c