summaryrefslogtreecommitdiffstats
path: root/io_uring/io_uring.c
diff options
context:
space:
mode:
authorLin Ma <linma@zju.edu.cn>2022-11-10 20:21:03 +0800
committerJens Axboe <axboe@kernel.dk>2022-11-21 07:44:16 -0700
commit23a6c9ac4dbd7cccf5b909e78aa84192b65f2833 (patch)
tree05fa3333fb755272ce2bc69be584804bdee2c502 /io_uring/io_uring.c
parentcd42a53d25d489317b9ae5213da721cde8cb7071 (diff)
downloadlinux-23a6c9ac4dbd7cccf5b909e78aa84192b65f2833.tar.bz2
io_uring: update outdated comment of callbacks
Previous commit ebc11b6c6b87 ("io_uring: clean io-wq callbacks") rename io_free_work() into io_wq_free_work() for consistency. This patch also updates relevant comment to avoid misunderstanding. Fixes: ebc11b6c6b87 ("io_uring: clean io-wq callbacks") Signed-off-by: Lin Ma <linma@zju.edu.cn> Link: https://lore.kernel.org/r/20221110122103.20120-1-linma@zju.edu.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r--io_uring/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index cf68d16255a0..c770eed4d717 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -1781,7 +1781,7 @@ void io_wq_submit_work(struct io_wq_work *work)
bool needs_poll = false;
int ret = 0, err = -ECANCELED;
- /* one will be dropped by ->io_free_work() after returning to io-wq */
+ /* one will be dropped by ->io_wq_free_work() after returning to io-wq */
if (!(req->flags & REQ_F_REFCOUNT))
__io_req_set_refcount(req, 2);
else