]> git.baikalelectronics.ru Git - kernel.git/commit
block: simplify struct io_context refcounting
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Dec 2021 06:31:22 +0000 (07:31 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Dec 2021 17:59:01 +0000 (10:59 -0700)
commitafcfb2138b166b4eaa4c823d5c315035998426e7
tree6e3e60626ffaabf7d6a6c99e4301764709c38637
parentfd68bf124208e23320a281faaabfb41ffb220507
block: simplify struct io_context refcounting

Don't hold a reference to ->refcount for each active reference, but
just one for all active references.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20211209063131.18537-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ioc.c