Skip to content

Commit 216c7a0

Browse files
committed
Merge tag 'io_uring-6.19-20260116' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
Pull io_uring fix from Jens Axboe: "Just a single fix moving local task_work inside the cancelation loop, rather than only before cancelations. If any cancelations generate task_work, we do need to re-run it" * tag 'io_uring-6.19-20260116' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux: io_uring: move local task_work in exit cancel loop
2 parents 39d3389 + da579f0 commit 216c7a0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

io_uring/io_uring.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3003,12 +3003,12 @@ static __cold void io_ring_exit_work(struct work_struct *work)
30033003
mutex_unlock(&ctx->uring_lock);
30043004
}
30053005

3006-
if (ctx->flags & IORING_SETUP_DEFER_TASKRUN)
3007-
io_move_task_work_from_local(ctx);
3008-
30093006
/* The SQPOLL thread never reaches this path */
3010-
while (io_uring_try_cancel_requests(ctx, NULL, true, false))
3007+
do {
3008+
if (ctx->flags & IORING_SETUP_DEFER_TASKRUN)
3009+
io_move_task_work_from_local(ctx);
30113010
cond_resched();
3011+
} while (io_uring_try_cancel_requests(ctx, NULL, true, false));
30123012

30133013
if (ctx->sq_data) {
30143014
struct io_sq_data *sqd = ctx->sq_data;

0 commit comments

Comments
 (0)