summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorFam Zheng <fam.zheng@bytedance.com>2021-06-04 17:42:56 +0100
committerJens Axboe <axboe@kernel.dk>2021-06-15 15:39:16 -0600
commitdd9ae8a0b2985ead64dfcfa2f9a0ce5efa1480aa (patch)
treefceb40a4617a6419f82b7fa6973783eeb91502ab /fs
parent441b8a7803bfa11af2355beea9a07720d4b5c03a (diff)
downloadlinux-next-dd9ae8a0b2985ead64dfcfa2f9a0ce5efa1480aa.tar.gz
io_uring: Fix comment of io_get_sqe
The sqe_ptr argument has been gone since 709b302faddf (io_uring: simplify io_get_sqring, 2020-04-08), made the return value of the function. Update the comment accordingly. Signed-off-by: Fam Zheng <fam.zheng@bytedance.com> Reviewed-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/20210604164256.12242-1-fam.zheng@bytedance.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r--fs/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index ab9a16c89545..807a1abe69c5 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -6673,7 +6673,7 @@ static void io_commit_sqring(struct io_ring_ctx *ctx)
}
/*
- * Fetch an sqe, if one is available. Note that sqe_ptr will point to memory
+ * Fetch an sqe, if one is available. Note this returns a pointer to memory
* that is mapped by userspace. This means that care needs to be taken to
* ensure that reads are stable, as we cannot rely on userspace always
* being a good citizen. If members of the sqe are validated and then later