]> git.baikalelectronics.ru Git - 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)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 Dec 2021 17:49:04 +0000 (10:49 -0700)
commit695082a1c77cf62d1ffa5921f13f038e399c62d1
treee181912fc7daa3f1b7f6f203b221b939956e52f7
parent35159f0320f0cd9d191272a15b6d37797116e063
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