diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-03-24 13:53:18 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-03-24 13:53:18 +0100 |
commit | 7ef66d186eb95f987a97fb3329b65c840e2dc9bf (patch) | |
tree | 5348c65a930ae46d84d86ea59fd278997d714efe /fs | |
parent | io_uring: add flag for disabling provided buffer recycling (diff) | |
download | linux-7ef66d186eb95f987a97fb3329b65c840e2dc9bf.tar.xz linux-7ef66d186eb95f987a97fb3329b65c840e2dc9bf.zip |
io_uring: remove IORING_CQE_F_MSG
This was introduced with the message ring opcode, but isn't strictly
required for the request itself. The sender can encode what is needed
in user_data, which is passed to the receiver. It's unclear if having
a separate flag that essentially says "This CQE did not originate from
an SQE on this ring" provides any real utility to applications. While
we can always re-introduce a flag to provide this information, we cannot
take it away at a later point in time.
Remove the flag while we still can, before it's in a released kernel.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/io_uring.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 88556e654c5a..28b7a1b8abb6 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -4474,8 +4474,7 @@ static int io_msg_ring(struct io_kiocb *req, unsigned int issue_flags) target_ctx = req->file->private_data; spin_lock(&target_ctx->completion_lock); - filled = io_fill_cqe_aux(target_ctx, msg->user_data, msg->len, - IORING_CQE_F_MSG); + filled = io_fill_cqe_aux(target_ctx, msg->user_data, msg->len, 0); io_commit_cqring(target_ctx); spin_unlock(&target_ctx->completion_lock); |