]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: count ctx refs separately from reqs
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 10 Feb 2021 00:03:16 +0000 (00:03 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Feb 2021 14:28:43 +0000 (07:28 -0700)
commit9ae7246321d2b735867f6767e0fab96dd248c555
tree946310c7e87c3add96aec1b6669b5cfe422940a3
parent3893f39f2245eec04b8052cd441c2cb8a9ea3447
io_uring: count ctx refs separately from reqs

Currently batch free handles request memory freeing and ctx ref putting
together. Separate them and use different counters, that will be needed
for reusing reqs memory.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c