diff --git a/fs/io_uring.c b/fs/io_uring.c index 3c6dad916252bba9e3d7d5922a773d15a2e5b7dd..21b0654c9217a20d8971fcd5220e3f11814271fe 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2794,13 +2794,14 @@ static int io_ring_submit(struct io_ring_ctx *ctx, unsigned int to_submit) submit++; io_submit_sqe(ctx, &s, statep, &link); } - io_commit_sqring(ctx); if (link) io_queue_link_head(ctx, link, &link->submit, shadow_req); if (statep) io_submit_state_end(statep); + io_commit_sqring(ctx); + return submit; }