]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
io-wq: remove spurious bit clear on task_work addition
authorJens Axboe <axboe@kernel.dk>
Mon, 6 Dec 2021 17:49:04 +0000 (10:49 -0700)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:29 +0000 (09:49 +0100)
commit169d12b6a9a874257e4628263bfdad8cf7ab9682
tree8480fbba1938ad849e77ea1102b79809cf239edf
parent4d02b9ecf40fcf9b7ef936ebe299f0245362007c
io-wq: remove spurious bit clear on task_work addition

BugLink: https://bugs.launchpad.net/bugs/1956302
commit e47498afeca9a0c6d07eeeacc46d563555a3f677 upstream.

There's a small race here where the task_work could finish and drop
the worker itself, so that by the time that task_work_add() returns
with a successful addition we've already put the worker.

The worker callbacks clear this bit themselves, so we don't actually
need to manually clear it in the caller. Get rid of it.

Reported-by: syzbot+b60c982cb0efc5e05a47@syzkaller.appspotmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
fs/io-wq.c