Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 1059699f authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

block: move blkcg initialization/destroy into disk allocation/release handler


blkcg works on FS bio level, so it is reasonable to make both blkcg and
gendisk sharing same lifetime. Meantime there won't be any FS IO when
releasing disk, so safe to move blkcg initialization/destroy into disk
allocation/release handler

Long term, we can move blkcg into gendisk completely.

Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220308055200.735835-10-hch@lst.de


[axboe: fixup missing blk-cgroup.h include]
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 01d0c698
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment