io_uring/wq: avoid indirect do_work/free_work calls
authorCaleb Sander Mateos <csander@purestorage.com>
Sat, 29 Mar 2025 16:15:24 +0000 (10:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Apr 2025 02:17:46 +0000 (20:17 -0600)
commitfbe8be367f1e8399a27fd6f4b439334056b2624e
treeb7c83e93af3b2fc1a451b8953b0f4925a21f41bc
parent06a22366d6a11ca8ed03c738171822ac9b714cfd
io_uring/wq: avoid indirect do_work/free_work calls

struct io_wq stores do_work and free_work function pointers which are
called on each work item. But these function pointers are always set to
io_wq_submit_work and io_wq_free_work, respectively. So remove these
function pointers and just call the functions directly.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250329161527.3281314-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.c
io_uring/io-wq.h
io_uring/io_uring.c
io_uring/tctx.c