summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-02-03 18:03:43 +0300
committerJens Axboe <axboe@kernel.dk>2023-02-03 18:20:04 +0300
commit178fa7d49815ea8001f43ade37a22072829fd8ab (patch)
treea27898ff8fedf946256c22264c8fb9d05371858d /tools/perf/scripts/python/libxed.py
parenta886001c2da8dd02357d0d336ddb021903347f89 (diff)
downloadlinux-178fa7d49815ea8001f43ade37a22072829fd8ab.tar.xz
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 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions