Skip to content
  • Tejun Heo's avatar
    writeback, blkcg: associate each blkcg_gq with the corresponding bdi_writeback_congested · ce7acfea
    Tejun Heo authored
    
    
    A blkg (blkcg_gq) can be congested and decongested independently from
    other blkgs on the same request_queue.  Accordingly, for cgroup
    writeback support, the congestion status at bdi (backing_dev_info)
    should be split and updated separately from matching blkg's.
    
    This patch prepares by adding blkg->wb_congested and associating a
    blkg with its matching per-blkcg bdi_writeback_congested on creation.
    
    v2: Updated to associate bdi_writeback_congested instead of
        bdi_writeback.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Jens Axboe <axboe@kernel.dk>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    ce7acfea