Commit dd9ae8a0 authored by Fam Zheng's avatar Fam Zheng Committed by Jens Axboe

io_uring: Fix comment of io_get_sqe

The sqe_ptr argument has been gone since 709b302f (io_uring:
simplify io_get_sqring, 2020-04-08), made the return value of the
function. Update the comment accordingly.
Signed-off-by: default avatarFam Zheng <fam.zheng@bytedance.com>
Reviewed-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20210604164256.12242-1-fam.zheng@bytedance.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 441b8a78
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment