summaryrefslogtreecommitdiff
path: root/io_uring/openclose.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-05-08 14:48:33 -0600
committerJens Axboe <axboe@kernel.dk>2025-05-21 08:41:16 -0600
commit8bb9d6ccd36062d16baa707b759809e1f494017e (patch)
tree5b4b1a9c872fab174a08c09fe3b788e6358c3bc3 /io_uring/openclose.c
parentf660fd2ca15a3743f65f6110ae60d5b80500d856 (diff)
io_uring: finish IOU_OK -> IOU_COMPLETE transition
IOU_COMPLETE is more descriptive, in that it explicitly says that the return value means "please post a completion for this request". This patch completes the transition from IOU_OK to IOU_COMPLETE, replacing existing IOU_OK users. This is a purely mechanical change. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/openclose.c')
-rw-r--r--io_uring/openclose.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io_uring/openclose.c b/io_uring/openclose.c
index 4dd461163457..83e36ad4e31b 100644
--- a/io_uring/openclose.c
+++ b/io_uring/openclose.c
@@ -171,7 +171,7 @@ err:
if (ret < 0)
req_set_fail(req);
io_req_set_res(req, ret, 0);
- return IOU_OK;
+ return IOU_COMPLETE;
}
int io_openat(struct io_kiocb *req, unsigned int issue_flags)
@@ -259,7 +259,7 @@ err:
if (ret < 0)
req_set_fail(req);
io_req_set_res(req, ret, 0);
- return IOU_OK;
+ return IOU_COMPLETE;
}
int io_install_fixed_fd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
@@ -302,7 +302,7 @@ int io_install_fixed_fd(struct io_kiocb *req, unsigned int issue_flags)
if (ret < 0)
req_set_fail(req);
io_req_set_res(req, ret, 0);
- return IOU_OK;
+ return IOU_COMPLETE;
}
struct io_pipe {
@@ -426,7 +426,7 @@ int io_pipe(struct io_kiocb *req, unsigned int issue_flags)
io_req_set_res(req, ret, 0);
if (!ret)
- return IOU_OK;
+ return IOU_COMPLETE;
req_set_fail(req);
if (files[0])