Skip to content

Commit 41cdcc2

Browse files
isilenceaxboe
authored andcommitted
io_uring: improve req fields comments
Move a misplaced comment about req->creds and add a line with assumptions about req->link. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/1e51d1e6b1f3708c2d4127b4e371f9daa4c5f859.1648209006.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 52dd864 commit 41cdcc2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fs/io_uring.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,10 +935,11 @@ struct io_kiocb {
935935
struct async_poll *apoll;
936936
/* opcode allocated if it needs to store data for async defer */
937937
void *async_data;
938-
/* custom credentials, valid IFF REQ_F_CREDS is set */
939938
/* stores selected buf, valid IFF REQ_F_BUFFER_SELECTED is set */
940939
struct io_buffer *kbuf;
940+
/* linked requests, IFF REQ_F_HARDLINK or REQ_F_LINK are set */
941941
struct io_kiocb *link;
942+
/* custom credentials, valid IFF REQ_F_CREDS is set */
942943
const struct cred *creds;
943944
struct io_wq_work work;
944945
};

0 commit comments

Comments
 (0)