• Tejun Heo's avatar
    blkcg: rename blkcg->cgwb_refcnt to ->online_pin and always use it · d866dbf6
    Tejun Heo authored
    blkcg->cgwb_refcnt is used to delay blkcg offlining so that blkgs
    don't get offlined while there are active cgwbs on them.  However, it
    ends up making offlining unordered sometimes causing parents to be
    offlined before children.
    
    To fix it, we want child blkcgs to pin the parents' online states
    turning the refcnt into a more generic online pinning mechanism.
    
    In prepartion,
    
    * blkcg->cgwb_refcnt -> blkcg->online_pin
    * blkcg_cgwb_get/put() -> blkcg_pin/unpin_online()
    * Take them out of CONFIG_CGROUP_WRITEBACK
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    d866dbf6
blk-cgroup.c 44.2 KB