]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
blkcg: remove additional reference to the css
authorDennis Zhou <dennis@kernel.org>
Wed, 5 Dec 2018 17:10:36 +0000 (12:10 -0500)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Dec 2018 05:26:37 +0000 (22:26 -0700)
commitfc5a828bfad628c1092194f2814604943561c52d
treecb81a0b887a0225c5cdbc925127c533e60be4f99
parentdb6638d7d177a8bc74c9e539e2e0d7d061c767b1
blkcg: remove additional reference to the css

The previous patch in this series removed carrying around a pointer to
the css in blkg. However, the blkg association logic still relied on
taking a reference on the css to ensure we wouldn't fail in getting a
reference for the blkg.

Here the implicit dependency on the css is removed. The association
continues to rely on the tryget logic walking up the blkg tree. This
streamlines the three ways that association can happen: normal, swap,
and writeback.

Signed-off-by: Dennis Zhou <dennis@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/blk-cgroup.h
include/linux/cgroup.h
kernel/cgroup/cgroup.c