diff options
author | Hao Xu <howeyxu@tencent.com> | 2022-06-16 11:22:01 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-25 02:39:13 +0200 |
commit | 3654ab0c51a91036d15dd2fd9c2809317edf2228 (patch) | |
tree | ac9b547af6ad3493435681109f691758a5c0c84d | |
parent | io_uring: don't inline io_put_kbuf (diff) | |
download | linux-3654ab0c51a91036d15dd2fd9c2809317edf2228.tar.xz linux-3654ab0c51a91036d15dd2fd9c2809317edf2228.zip |
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>
-rw-r--r-- | io_uring/poll.c | 1 |
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; } |