• Tejun Heo's avatar
    blkcg: let blkio_group point to blkio_cgroup directly · 7ee9c562
    Tejun Heo authored
    Currently, blkg points to the associated blkcg via its css_id.  This
    unnecessarily complicates dereferencing blkcg.  Let blkg hold a
    reference to the associated blkcg and point directly to it and disable
    css_id on blkio_subsys.
    
    This change requires splitting blkiocg_destroy() into
    blkiocg_pre_destroy() and blkiocg_destroy() so that all blkg's can be
    destroyed and all the blkcg references held by them dropped during
    cgroup removal.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    7ee9c562
blk-throttle.c 30.7 KB