io_uring: inline io_async_submit()
The name is confusing and it's used only in one place. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
5c766a908d
commit
2d7e935809
@@ -1278,11 +1278,6 @@ static inline void io_req_init_async(struct io_kiocb *req)
|
|||||||
refcount_inc(&req->work.identity->count);
|
refcount_inc(&req->work.identity->count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool io_async_submit(struct io_ring_ctx *ctx)
|
|
||||||
{
|
|
||||||
return ctx->flags & IORING_SETUP_SQPOLL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void io_ring_ctx_ref_free(struct percpu_ref *ref)
|
static void io_ring_ctx_ref_free(struct percpu_ref *ref)
|
||||||
{
|
{
|
||||||
struct io_ring_ctx *ctx = container_of(ref, struct io_ring_ctx, refs);
|
struct io_ring_ctx *ctx = container_of(ref, struct io_ring_ctx, refs);
|
||||||
@@ -6969,7 +6964,7 @@ fail_req:
|
|||||||
}
|
}
|
||||||
|
|
||||||
trace_io_uring_submit_sqe(ctx, req->opcode, req->user_data,
|
trace_io_uring_submit_sqe(ctx, req->opcode, req->user_data,
|
||||||
true, io_async_submit(ctx));
|
true, ctx->flags & IORING_SETUP_SQPOLL);
|
||||||
err = io_submit_sqe(req, sqe, &link, &state.comp);
|
err = io_submit_sqe(req, sqe, &link, &state.comp);
|
||||||
if (err)
|
if (err)
|
||||||
goto fail_req;
|
goto fail_req;
|
||||||
|
|||||||
Reference in New Issue
Block a user