Skip to content

Commit f3ae9c1

Browse files
committed
Merge branch 'for-6.11/io_uring' into for-next
* for-6.11/io_uring: io_uring/msg_ring: fix overflow posting
2 parents 2318373 + 3b7c16b commit f3ae9c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

io_uring/io_uring.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,11 @@ bool io_post_aux_cqe(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 cflags
834834
*/
835835
void io_add_aux_cqe(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 cflags)
836836
{
837-
__io_post_aux_cqe(ctx, user_data, res, cflags);
837+
if (!io_fill_cqe_aux(ctx, user_data, res, cflags)) {
838+
spin_lock(&ctx->completion_lock);
839+
io_cqring_event_overflow(ctx, user_data, res, cflags, 0, 0);
840+
spin_unlock(&ctx->completion_lock);
841+
}
838842
ctx->submit_state.cq_flush = true;
839843
}
840844

0 commit comments

Comments
 (0)