• Tejun Heo's avatar
    blkcg: don't offline parent blkcg first · 4308a434
    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.
    
    Let's fix this by making child blkcgs pin the parents' online states.
    
    Note that pin/unpin names are chosen over get/put intentionally
    because css uses get/put online for something different.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    4308a434
blk-cgroup.c 44.7 KB