Skip to content
Commit 024f9c7c authored by Jens Axboe's avatar Jens Axboe Committed by Greg Kroah-Hartman
Browse files

io-wq: remove spurious bit clear on task_work addition

commit e47498af

 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: default avatar <syzbot+b60c982cb0efc5e05a47@syzkaller.appspotmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dfc3fff6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment