]> git.baikalelectronics.ru Git - 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)
commit9ed1ba108f4d73f35fe3faacd65e7201b3b4836a
treedd230c9477e3b316863a589639280965efcbf429
parentc90f3d48a618c0972e9f7f7f127c702e68060616
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