From a6caf01e8a175e9364d1833618776ff1da8e2bb3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 15 Apr 2021 17:33:31 +0800 Subject: [PATCH] io_uring: io_async_cancel() should pass in 'nxt' request pointer mainline inclusion from mainline-5.5-rc1 commit 95a5bbae05ef1ec1cceb8c1b04a482aa0b7c177c category: feature bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=27 CVE: NA --------------------------- If we have a linked request, this enables us to pass it back directly without having to go through async context. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 92bde6c73ec0..aaaf48a84d82 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2479,7 +2479,7 @@ static int io_async_cancel(struct io_kiocb *req, const struct io_uring_sqe *sqe, sqe->cancel_flags) return -EINVAL; - io_async_find_and_cancel(ctx, req, READ_ONCE(sqe->addr), NULL); + io_async_find_and_cancel(ctx, req, READ_ONCE(sqe->addr), nxt); return 0; } -- GitLab