projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e27414b
)
io_uring: simplify apoll hash removal
author
Pavel Begunkov
<asml.silence@gmail.com>
Fri, 9 Apr 2021 08:13:21 +0000
(09:13 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:40 +0000
(19:30 -0600)
hash_del() works well with non-hashed nodes, there's no need to check
if it is hashed first.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index 88c94627c74309fb15b52ce15248d27156039f22..abab957673076b2e12dab753e33d2dd19ac2b19a 100644
(file)
--- a/
fs/io_uring.c
+++ b/
fs/io_uring.c
@@
-5059,10
+5059,7
@@
static void io_async_task_func(struct callback_head *cb)
return;
}
- /* If req is still hashed, it cannot have been canceled. Don't check. */
- if (hash_hashed(&req->hash_node))
- hash_del(&req->hash_node);
-
+ hash_del(&req->hash_node);
io_poll_remove_double(req);
spin_unlock_irq(&ctx->completion_lock);