]> 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)
commit0dd0b96bf370f4741b99eb63e41b4558db4cabdd
treedd230c9477e3b316863a589639280965efcbf429
parent86ce62d71fb4f932a9af4db26b249494aad0f189
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