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)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 Dec 2021 17:49:04 +0000 (10:49 -0700)
commite47498afeca9a0c6d07eeeacc46d563555a3f677
treee181912fc7daa3f1b7f6f203b221b939956e52f7
parenta226abcd5d427fe9d42efc442818a4a1821e2664
io-wq: remove spurious bit clear on task_work addition

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>
fs/io-wq.c