From 95a5bbae05ef1ec1cceb8c1b04a482aa0b7c177c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 14 Nov 2019 22:40:44 -0700 Subject: [PATCH] io_uring: io_async_cancel() should pass in 'nxt' request pointer 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 --- 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 4c030a9..0112818 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2480,7 +2480,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; } -- 2.7.4