]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb8108d59b76801f6cedf6787205b9d294c2155d8
treed479e58d0f5daa88c842b0c77640b85ab3567369
parent0a37ff0eedda0425447890140840b92bc3d208d9
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