]> www.infradead.org Git - users/hch/block.git/commit
blk-cgroup: pin the gendisk in struct blkcg_gq
authorChristoph Hellwig <hch@lst.de>
Sat, 5 Nov 2022 08:17:02 +0000 (09:17 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 3 Feb 2023 08:03:09 +0000 (09:03 +0100)
commit95e18e43fe8fcc3faa566645810e3abd9baf6b58
tree338edb3db9c6078f07403110e27b65c471818750
parent82b001e1f945011464885895a2f1ee030d339d05
blk-cgroup: pin the gendisk in struct blkcg_gq

Currently each blkcg_gq holds a request_queue reference, which is what
is used in the policies.  But a lot of these interfaces will move over to
use a gendisk, so store a disk in struct blkcg_gq and hold a reference to
it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Herrmann <aherrmann@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
block/bfq-cgroup.c
block/blk-cgroup-rwstat.c
block/blk-cgroup.c
block/blk-cgroup.h
block/blk-iocost.c
block/blk-iolatency.c
block/blk-throttle.c