Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torvalds/linux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHao Xu <howeyxu@tencent.com>2022-06-16 12:22:01 +0300
committerJens Axboe <axboe@kernel.dk>2022-07-25 03:39:13 +0300
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;
}