]> git.baikalelectronics.ru Git - 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)
commit1d165c2413edfd5a060101add1f9907778e0850f
treecb81a0b887a0225c5cdbc925127c533e60be4f99
parent9a87854b6b69caaf93126035e47fab867d121be3
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