+2
−0
Loading
The origin bio carries blk-cgroup information which could be set from foreground(task_css(css) - wbc->wb->blkcg_css), so the blkcg won't control buffer io since commit ca522482 ("dm: pass NULL bdev to bio_alloc_clone"). The synchronous io is still under control by blkcg, because 'bio->bi_blkg' is set by io submitting task which has been added into 'cgroup.procs'. Fix it by using bio_clone_blkg_association when submitting a cloned bio. Link: https://bugzilla.kernel.org/show_bug.cgi?id=220985 Fixes: ca522482 ("dm: pass NULL bdev to bio_alloc_clone") Reported-by:Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by:
Mikulas Patocka <mpatocka@redhat.com> Tested-by:
Zhihao Cheng <chengzhihao1@huawei.com>