io_uring: open code __io_post_aux_cqe()
There is no reason to keep __io_post_aux_cqe() separately from io_post_aux_cqe(). Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/2c4c1f68d694deea25a212fc09bbb11f330cd82e.1742829388.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>pull/1188/head
parent
3afcb3b2e3
commit
4c76de42cb
|
|
@ -834,24 +834,14 @@ static bool io_fill_cqe_aux(struct io_ring_ctx *ctx, u64 user_data, s32 res,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool __io_post_aux_cqe(struct io_ring_ctx *ctx, u64 user_data, s32 res,
|
|
||||||
u32 cflags)
|
|
||||||
{
|
|
||||||
bool filled;
|
|
||||||
|
|
||||||
filled = io_fill_cqe_aux(ctx, user_data, res, cflags);
|
|
||||||
if (!filled)
|
|
||||||
filled = io_cqring_event_overflow(ctx, user_data, res, cflags, 0, 0);
|
|
||||||
|
|
||||||
return filled;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool io_post_aux_cqe(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 cflags)
|
bool io_post_aux_cqe(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 cflags)
|
||||||
{
|
{
|
||||||
bool filled;
|
bool filled;
|
||||||
|
|
||||||
io_cq_lock(ctx);
|
io_cq_lock(ctx);
|
||||||
filled = __io_post_aux_cqe(ctx, user_data, res, cflags);
|
filled = io_fill_cqe_aux(ctx, user_data, res, cflags);
|
||||||
|
if (!filled)
|
||||||
|
filled = io_cqring_event_overflow(ctx, user_data, res, cflags, 0, 0);
|
||||||
io_cq_unlock_post(ctx);
|
io_cq_unlock_post(ctx);
|
||||||
return filled;
|
return filled;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue