From 04ad9852ba4a0c9d19487ed52806d6754e4b8d85 Mon Sep 17 00:00:00 2001 From: Pavel Begunkov Date: Thu, 15 Apr 2021 17:33:53 +0800 Subject: [PATCH] io_uring: remove io_free_req_find_next() mainline inclusion from mainline-5.5-rc1 commit 70cf9f3270a5c5148e93a526dc1e51965259e70c category: feature bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=27 CVE: NA --------------------------- There is only one one-liner user of io_free_req_find_next(). Inline it. Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe Signed-off-by: Zhihao Cheng Signed-off-by: yangerkun Reviewed-by: zhangyi (F) Signed-off-by: Cheng Jian --- fs/io_uring.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index d7ea7e0ee473..192a5903df34 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -983,15 +983,10 @@ static void io_req_find_next(struct io_kiocb *req, struct io_kiocb **nxt) } } -static void io_free_req_find_next(struct io_kiocb *req, struct io_kiocb **nxt) -{ - io_req_find_next(req, nxt); - __io_free_req(req); -} - static void io_free_req(struct io_kiocb *req) { - io_free_req_find_next(req, NULL); + io_req_find_next(req, NULL); + __io_free_req(req); } /* -- GitLab