OSDN Git Service

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)
commit0aed2f162bbc7853fe91c0d70492ea73c4e9cb07
tree6e3e60626ffaabf7d6a6c99e4301764709c38637
parent8a2ba1785c5803d59a63b6320ff54fd4a37a41ce
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