projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53ccf69
)
io_uring: poll: remove unnecessary req->ref set
author
Hao Xu
<howeyxu@tencent.com>
Thu, 16 Jun 2022 09:22:01 +0000
(10:22 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:13 +0000
(18:39 -0600)
We now don't need to set req->refcount for poll requests since the
reworked poll code ensures no request release race.
Signed-off-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/ec6fee45705890bdb968b0c175519242753c0215.1655371007.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c
patch
|
blob
|
history
diff --git
a/io_uring/poll.c
b/io_uring/poll.c
index 558dc170468ad8ecc145db0550085589e0c4637b..fdb6b1101ffcb7729c89aa6d5280e19e087cd3e0 100644
(file)
--- a/
io_uring/poll.c
+++ b/
io_uring/poll.c
@@
-689,7
+689,6
@@
int io_poll_add_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
if ((flags & IORING_POLL_ADD_MULTI) && (req->flags & REQ_F_CQE_SKIP))
return -EINVAL;
- io_req_set_refcount(req);
poll->events = io_poll_parse_events(sqe, flags);
return 0;
}