io_uring: improve io_run_task_work()
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 21 Jun 2022 09:09:00 +0000 (10:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:44:34 +0000 (08:44 -0600)
commit80ff20d177b416ee3e634ab6f93cac97354ebe99
treecf24b956a2d4d7fd6a8df332f4ab05a18f8bbf97
parent1a502b544790b060866f5b3b21f83f87468ca696
io_uring: improve io_run_task_work()

Since SQPOLL now uses TWA_SIGNAL_NO_IPI, there won't be task work items
without TIF_NOTIFY_SIGNAL. Simplify io_run_task_work() by removing
task->task_works check. Even though looks it doesn't cause extra cache
bouncing, it's still nice to not touch it an extra time when it might be
not cached.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/75d4f34b0c671075892821a409e28da6cb1d64fe.1655802465.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h