]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 9 Dec 2021 10:10:47 +0000 (11:10 +0100)
commit1fbdce72921f674abe7cd3664a6d98fa78b66d0d
tree2a670567f9b1896bc41567266606273263b46710
parent32c7741f85b25306d506e211fb5f7ecc2d697b74
io-wq: don't retry task_work creation failure on fatal conditions

BugLink: https://bugs.launchpad.net/bugs/1953731
[ Upstream commit a226abcd5d427fe9d42efc442818a4a1821e2664 ]

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: 3146cba99aa2 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/io-wq.c