projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c91e6a
)
io_uring: io_async_cancel() should pass in 'nxt' request pointer
author
Jens Axboe
<axboe@kernel.dk>
Fri, 15 Nov 2019 05:40:44 +0000
(22:40 -0700)
committer
Jens 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
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index 4c030a92de795760242450e430b4f042bbe744c1..011281856ff762802359eb8c7fb236fe5102f68b 100644
(file)
--- 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;
}