summaryrefslogtreecommitdiff
path: root/io_uring/poll.c
diff options
context:
space:
mode:
authorHao Xu <howeyxu@tencent.com>2022-06-16 10:22:01 +0100
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:13 -0600
commit3654ab0c51a91036d15dd2fd9c2809317edf2228 (patch)
treeac9b547af6ad3493435681109f691758a5c0c84d /io_uring/poll.c
parent53ccf69bda6f51e462f3c4ab7eb9c0ec34e78be4 (diff)
io_uring: poll: remove unnecessary req->ref set
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>
Diffstat (limited to 'io_uring/poll.c')
-rw-r--r--io_uring/poll.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/io_uring/poll.c b/io_uring/poll.c
index 558dc170468a..fdb6b1101ffc 100644
--- 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;
}