]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: don't retry task_work creation failure on fatal conditions
authorJens Axboe <axboe@kernel.dk>
Fri, 3 Dec 2021 02:40:15 +0000 (19:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Dec 2021 13:27:32 +0000 (06:27 -0700)
commitaf76b2c77315ef32fa6a514af76c243d465acaad
tree4b7dc3c924b915a60e7300d0b4d305a8c2e84086
parent6131e4876d5737361370e29a1559ebbaf089ec40
io-wq: don't retry task_work creation failure on fatal conditions

We don't want to be retrying task_work creation failure if there's
an actual signal pending for the parent task. If we do, then we can
enter an infinite loop of perpetually retrying and each retry failing
with -ERESTARTNOINTR because a signal is pending.

Fixes: e917e6222792 ("io-wq: make worker creation resilient against signals")
Reported-by: Florian Fischer <florian.fl.fischer@fau.de>
Link: https://lore.kernel.org/io-uring/20211202165606.mqryio4yzubl7ms5@pasture/
Tested-by: Florian Fischer <florian.fl.fischer@fau.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c