Skip to content
  • Tejun Heo's avatar
    blkcg: move refcnt to blkcg core · 1adaf3dd
    Tejun Heo authored
    
    
    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: default avatarTejun Heo <tj@kernel.org>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    1adaf3dd