diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2022-11-17 18:41:06 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-01 08:34:41 +0100 |
| commit | 6dbb84c7c2e13d4d45dc1409f9ba1764ae7f9cff (patch) | |
| tree | 32ae357d65435f6d5b89de200257b53d40f2f7d6 /io_uring/io_uring.c | |
| parent | bfd4d1884065f0cc1e739c2170551543c9e0e287 (diff) | |
| download | linux-6dbb84c7c2e13d4d45dc1409f9ba1764ae7f9cff.tar.gz linux-6dbb84c7c2e13d4d45dc1409f9ba1764ae7f9cff.tar.bz2 linux-6dbb84c7c2e13d4d45dc1409f9ba1764ae7f9cff.zip | |
io_uring: inline __io_req_complete_post()
[ Upstream commit f9d567c75ec216447f36da6e855500023504fa04 ]
There is only one user of __io_req_complete_post(), inline it.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/ef4c9059950a3da5cf68df00f977f1fd13bd9306.1668597569.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: ef5c600adb1d ("io_uring: always prep_async for drain requests")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'io_uring/io_uring.c')
| -rw-r--r-- | io_uring/io_uring.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index b4f9707730b8..9b1c917c99d9 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -854,19 +854,14 @@ static void __io_req_complete_put(struct io_kiocb *req) } } -void __io_req_complete_post(struct io_kiocb *req) -{ - if (!(req->flags & REQ_F_CQE_SKIP)) - __io_fill_cqe_req(req->ctx, req); - __io_req_complete_put(req); -} - void io_req_complete_post(struct io_kiocb *req) { struct io_ring_ctx *ctx = req->ctx; io_cq_lock(ctx); - __io_req_complete_post(req); + if (!(req->flags & REQ_F_CQE_SKIP)) + __io_fill_cqe_req(ctx, req); + __io_req_complete_put(req); io_cq_unlock_post(ctx); } |
