]> git.baikalelectronics.ru Git - kernel.git/commitdiff
io_uring: use io_run_local_work_locked helper
authorDylan Yudaken <dylany@meta.com>
Thu, 27 Oct 2022 14:44:28 +0000 (07:44 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Oct 2022 15:51:47 +0000 (09:51 -0600)
prefer to use io_run_local_work_locked helper for consistency

Signed-off-by: Dylan Yudaken <dylany@meta.com>
Link: https://lore.kernel.org/r/20221027144429.3971400-2-dylany@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c

index 6cc16e39b27f001018abcc43b4ade8107e42d893..8a0ce7379e89751b75ffcebc16e3ecd35f70acac 100644 (file)
@@ -1446,8 +1446,7 @@ static int io_iopoll_check(struct io_ring_ctx *ctx, long min)
                    io_task_work_pending(ctx)) {
                        u32 tail = ctx->cached_cq_tail;
 
-                       if (!llist_empty(&ctx->work_llist))
-                               __io_run_local_work(ctx, true);
+                       (void) io_run_local_work_locked(ctx);
 
                        if (task_work_pending(current) ||
                            wq_list_empty(&ctx->iopoll_list)) {