From: Jens Axboe Date: Fri, 15 Nov 2019 05:40:44 +0000 (-0700) Subject: io_uring: io_async_cancel() should pass in 'nxt' request pointer X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=95a5bbae05ef1ec1cceb8c1b04a482aa0b7c177c;p=linux.git 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 --- diff --git a/fs/io_uring.c b/fs/io_uring.c index 4c030a92de795..011281856ff76 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; }