diff options
| author | Caleb Sander Mateos <csander@purestorage.com> | 2025-03-29 10:15:24 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-04-21 05:06:58 -0600 |
| commit | 9fe99eed91e8273d3750367af759fe11e9512759 (patch) | |
| tree | 91a7aac3d85496840bd2244037ce4aaed17dab9f /io_uring/io_uring.c | |
| parent | 9d7a0577c9db35c4cc52db90bc415ea248446472 (diff) | |
| download | linux-next-9fe99eed91e8273d3750367af759fe11e9512759.tar.gz linux-next-9fe99eed91e8273d3750367af759fe11e9512759.zip | |
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>
Diffstat (limited to 'io_uring/io_uring.c')
| -rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index c6209fe44cb1..61514b14ee3f 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -1812,7 +1812,7 @@ void io_wq_submit_work(struct io_wq_work *work) bool needs_poll = false; int ret = 0, err = -ECANCELED; - /* one will be dropped by ->io_wq_free_work() after returning to io-wq */ + /* one will be dropped by io_wq_free_work() after returning to io-wq */ if (!(req->flags & REQ_F_REFCOUNT)) __io_req_set_refcount(req, 2); else |
