]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
io_uring: io_async_cancel() should pass in 'nxt' request pointer
authorJens Axboe <axboe@kernel.dk>
Fri, 15 Nov 2019 05:40:44 +0000 (22:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:48:31 +0000 (19:48 -0700)
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 <axboe@kernel.dk>
fs/io_uring.c

index 4c030a92de795760242450e430b4f042bbe744c1..011281856ff762802359eb8c7fb236fe5102f68b 100644 (file)
@@ -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;
 }