projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e146a4a
)
io_uring: refactor io_async_cancel()
author
Pavel Begunkov
<asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:53 +0000
(15:43 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:34 +0000
(19:30 -0600)
Remove extra tctx==NULL checks that are already done by
io_async_cancel_one().
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/70c2a8b958d942e86958a28af0452966ce1095b0.1617287883.git.asml.silence@gmail.com
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 6a0317e851f72395472dcc27f75882064fcee557..f53d93261e2b7e6dd1e0c002df0685d4902c1773 100644
(file)
--- a/
fs/io_uring.c
+++ b/
fs/io_uring.c
@@
-5824,8
+5824,6
@@
static int io_async_cancel(struct io_kiocb *req, unsigned int issue_flags)
list_for_each_entry(node, &ctx->tctx_list, ctx_node) {
struct io_uring_task *tctx = node->task->io_uring;
- if (!tctx || !tctx->io_wq)
- continue;
ret = io_async_cancel_one(tctx, req->cancel.addr, ctx);
if (ret != -ENOENT)
break;