summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-03-25 12:52:18 +0100
committerJens Axboe <axboe@kernel.dk>2022-03-25 13:37:52 +0100
commit41cdcc2202d4c466534b8f38975d2e6b16317c0c (patch)
treeea33ec5fb12ad9af1c7106839c796a19c07ad13e /fs
parentio_uring: enable EPOLLEXCLUSIVE for accept poll (diff)
downloadlinux-41cdcc2202d4c466534b8f38975d2e6b16317c0c.tar.xz
linux-41cdcc2202d4c466534b8f38975d2e6b16317c0c.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/io_uring.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index e72f58e2d06d..0356b2642263 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -935,10 +935,11 @@ struct io_kiocb {
struct async_poll *apoll;
/* opcode allocated if it needs to store data for async defer */
void *async_data;
- /* custom credentials, valid IFF REQ_F_CREDS is set */
/* stores selected buf, valid IFF REQ_F_BUFFER_SELECTED is set */
struct io_buffer *kbuf;
+ /* linked requests, IFF REQ_F_HARDLINK or REQ_F_LINK are set */
struct io_kiocb *link;
+ /* custom credentials, valid IFF REQ_F_CREDS is set */
const struct cred *creds;
struct io_wq_work work;
};