io_uring: better ref handling in poll_remove_one
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:51 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:34 +0000 (19:30 -0600)
commit7394161cb8bd26be43ebf0075e3b0197a6c3ca01
treed479e58d0f5daa88c842b0c77640b85ab3567369
parent89b5066ea1d96b321c0743259169c599d3f4f969
io_uring: better ref handling in poll_remove_one

Instead of io_put_req() to drop not a final ref, use req_ref_put(),
which is slimmer and will also check the invariant.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/85b5774ce13ae55cc2e705abdc8cbafe1212f1bd.1617287883.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c