io_uring: remove extra io_ring_exit_work wake up
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 6 Oct 2021 15:06:50 +0000 (16:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:55 +0000 (05:49 -0600)
task_work_add() takes care of waking up the thread, remove useless
wake_up_process().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/de9a71ee255112dcaed3b5d426be24934e74722c.1633532552.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c

index 7918a320104d16c2dd5051f8dcce346b677a173d..383b8f61359d0f44444333c9e9c5518d76f25a50 100644 (file)
@@ -9367,7 +9367,6 @@ static __cold void io_ring_exit_work(struct work_struct *work)
                ret = task_work_add(node->task, &exit.task_work, TWA_SIGNAL);
                if (WARN_ON_ONCE(ret))
                        continue;
-               wake_up_process(node->task);
 
                mutex_unlock(&ctx->uring_lock);
                wait_for_completion(&exit.completion);