mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
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 <axboe@kernel.dk>
This commit is contained in:
parent
9c91e6a5be
commit
95a5bbae05
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user