]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
blkcg, writeback: Add wbc->no_cgroup_owner
authorTejun Heo <tj@kernel.org>
Thu, 27 Jun 2019 20:39:50 +0000 (13:39 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jul 2019 15:00:57 +0000 (09:00 -0600)
commit27b36d8fa81fa8274fb72f4eb1484026f6b6daa8
tree3880d0298b096462f409a526bfbd52f7ef7875a8
parent34e51a5e1a6e939ed7d99c38173821ab86d577f4
blkcg, writeback: Add wbc->no_cgroup_owner

When writeback IOs are bounced through async layers, the IOs should
only be accounted against the wbc from the original bdi writeback to
avoid confusing cgroup inode ownership arbitration.  Add
wbc->no_cgroup_owner to allow disabling wbc cgroup owner accounting.
This will be used make btrfs compression work well with cgroup IO
control.

v2: Renamed from no_wbc_acct to no_cgroup_owner and added comment as
    per Jan.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/fs-writeback.c
include/linux/writeback.h