• T
    blkcg: move refcnt to blkcg core · 1adaf3dd
    Tejun Heo 提交于
    Currently, blkcg policy implementations manage blkg refcnt duplicating
    mostly identical code in both policies.  This patch moves refcnt to
    blkg and let blkcg core handle refcnt and freeing of blkgs.
    
    * cfq blkgs now also get freed via RCU.
    
    * cfq blkgs lose RB_EMPTY_ROOT() sanity check on blkg free.  If
      necessary, we can add blkio_exit_group_fn() to resurrect this.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    1adaf3dd
blk-throttle.c 29.5 KB