Commit 690637ec authored by Jens Axboe's avatar Jens Axboe Committed by Greg Kroah-Hartman
Browse files

io-wq: don't retry task_work creation failure on fatal conditions



[ Upstream commit a226abcd ]

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: 3146cba9 ("io-wq: make worker creation resilient against signals")
Reported-by: default avatarFlorian Fischer <florian.fl.fischer@fau.de>
Link: https://lore.kernel.org/io-uring/20211202165606.mqryio4yzubl7ms5@pasture/


Tested-by: default avatarFlorian Fischer <florian.fl.fischer@fau.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 894b21da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment