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>
Sun, 4 Apr 2021 21:28:41 +0000 (15:28 -0600)
commit99af4f9d98d62982e6bb6a567d63f7546ce56536
tree1a731b1d6b9aaf55ab6eaff13553b48ce3dfed43
parentf2549c0faf78b2920b46ed50a3b18bc2d659f2ca
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