]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
blkcg: remove additional reference to the css
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Tue, 11 Sep 2018 18:41:34 +0000 (14:41 -0400)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Sep 2018 02:29:15 +0000 (20:29 -0600)
commitf0fcb3ec89f37167810e660b0595d9a6155d9807
treedd230c9477e3b316863a589639280965efcbf429
parentc839e7a03f92bafd71fd145b470dcdc7f43f2d4c
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.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Dennis Zhou <dennisszhou@gmail.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