summaryrefslogtreecommitdiff
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-02-23 08:18:36 -0700
committerJens Axboe <axboe@kernel.dk>2021-04-11 17:41:58 -0600
commitb9b0e0d39c7b4be7af7976c52bdb8664dfa389f5 (patch)
tree609671a7d2166dda3144b23ca2e814058577d654 /fs/io_uring.c
parent7b29f92da377c358955b522045d0778aa79a540a (diff)
downloadlwn-b9b0e0d39c7b4be7af7976c52bdb8664dfa389f5.tar.gz
lwn-b9b0e0d39c7b4be7af7976c52bdb8664dfa389f5.zip
io_uring: correct comment on poll vs iopoll
The correct function is io_iopoll_complete(), which deals with completions of IOPOLL requests, not io_poll_complete(). Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-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 9ee33c32bea4..13d087ebe057 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -2564,7 +2564,7 @@ static void io_complete_rw_iopoll(struct kiocb *kiocb, long res, long res2)
req_set_fail_links(req);
WRITE_ONCE(req->result, res);
- /* order with io_poll_complete() checking ->result */
+ /* order with io_iopoll_complete() checking ->result */
smp_wmb();
WRITE_ONCE(req->iopoll_completed, 1);
}