]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Mon, 21 Apr 2025 11:06:58 +0000 (05:06 -0600)
commit9fe99eed91e8273d3750367af759fe11e9512759
tree91a7aac3d85496840bd2244037ce4aaed17dab9f
parent9d7a0577c9db35c4cc52db90bc415ea248446472
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