[v1] io_uring: update outdated comment of callbacks

Message ID 20221110122103.20120-1-linma@zju.edu.cn
State New
Headers
Series [v1] io_uring: update outdated comment of callbacks |

Commit Message

Lin Ma Nov. 10, 2022, 12:21 p.m. UTC
  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>
---
 io_uring/io_uring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jens Axboe Nov. 10, 2022, 6:16 p.m. UTC | #1
On Thu, 10 Nov 2022 20:21:03 +0800, Lin Ma wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] io_uring: update outdated comment of callbacks
      commit: 55acb7980966a3a007af6173910c7aa7b600226f

Best regards,
  

Patch

diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index ac8c488e3077..a1024b7fcc73 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -1782,7 +1782,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