diff options
author | Tejun Heo <tj@kernel.org> | 2019-07-24 10:37:22 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-01 14:56:42 -0600 |
commit | d866dbf6178713e37d2fec2870af00b345684e1a (patch) | |
tree | f87bdafbbe76c032b7d56a4612d63d3c89167e1a /block/bio.c | |
parent | 1a323ea5356edbb3073dc59d51b9e6b86908857d (diff) | |
download | linux-stable-d866dbf6178713e37d2fec2870af00b345684e1a.tar.gz linux-stable-d866dbf6178713e37d2fec2870af00b345684e1a.tar.bz2 linux-stable-d866dbf6178713e37d2fec2870af00b345684e1a.zip |
blkcg: rename blkcg->cgwb_refcnt to ->online_pin and always use it
blkcg->cgwb_refcnt is used to delay blkcg offlining so that blkgs
don't get offlined while there are active cgwbs on them. However, it
ends up making offlining unordered sometimes causing parents to be
offlined before children.
To fix it, we want child blkcgs to pin the parents' online states
turning the refcnt into a more generic online pinning mechanism.
In prepartion,
* blkcg->cgwb_refcnt -> blkcg->online_pin
* blkcg_cgwb_get/put() -> blkcg_pin/unpin_online()
* Take them out of CONFIG_CGROUP_WRITEBACK
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
0 files changed, 0 insertions, 0 deletions