summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-02-03 16:03:43 +0100
committerJens Axboe <axboe@kernel.dk>2023-02-03 08:20:04 -0700
commit178fa7d49815ea8001f43ade37a22072829fd8ab (patch)
treea27898ff8fedf946256c22264c8fb9d05371858d /block/blk-cgroup.c
parenta886001c2da8dd02357d0d336ddb021903347f89 (diff)
downloadlinux-stable-178fa7d49815ea8001f43ade37a22072829fd8ab.tar.gz
linux-stable-178fa7d49815ea8001f43ade37a22072829fd8ab.tar.bz2
linux-stable-178fa7d49815ea8001f43ade37a22072829fd8ab.zip
blk-cgroup: delay blk-cgroup initialization until add_disk
There is no need to initialize the cgroup code before the disk is marked live. Moving the cgroup initialization earlier will help to have a fully initialized struct device in the gendisk for the cgroup code to use in the future. Similarly tear the cgroup information down in del_gendisk to be symmetric and because none of the cgroup tracking is needed once non-passthrough I/O stops. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Andreas Herrmann <aherrmann@suse.de> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20230203150400.3199230-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
0 files changed, 0 insertions, 0 deletions