diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-01-19 13:32:37 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-02-01 10:02:42 -0700 |
commit | 2d7e935809b7f740442ce79fc6f53e94a1f0b874 (patch) | |
tree | 5b422e9a322d24f0bd553b0fda0e15e2ce795a80 /fs/io_uring.c | |
parent | 5c766a908d06e96d30e0ec2511a24fa311553d2c (diff) | |
download | lwn-2d7e935809b7f740442ce79fc6f53e94a1f0b874.tar.gz lwn-2d7e935809b7f740442ce79fc6f53e94a1f0b874.zip |
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>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 5e576878efd9..6eb4c25fa18b 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1278,11 +1278,6 @@ static inline void io_req_init_async(struct io_kiocb *req) 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) { 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, - true, io_async_submit(ctx)); + true, ctx->flags & IORING_SETUP_SQPOLL); err = io_submit_sqe(req, sqe, &link, &state.comp); if (err) goto fail_req; |