diff options
| author | Christoph Hellwig <hch@lst.de> | 2023-02-03 18:03:43 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2023-02-03 18:20:04 +0300 |
| commit | 178fa7d49815ea8001f43ade37a22072829fd8ab (patch) | |
| tree | a27898ff8fedf946256c22264c8fb9d05371858d /tools/perf/scripts/python/libxed.py | |
| parent | a886001c2da8dd02357d0d336ddb021903347f89 (diff) | |
| download | linux-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
