On Sat, 10 Jun 2023 07:42:49 +0800, Ming Lei wrote: > As noted by Michal, the blkg_iostat_set's in the lockless list hold > reference to blkg's to protect against their removal. Those blkg's > hold reference to blkcg. When a cgroup is being destroyed, > cgroup_rstat_flush() is only called at css_release_work_fn() which > is called when the blkcg reference count reaches 0. This circular > dependency will prevent blkcg and some blkgs from being freed after > they are made offline. > > [...] Applied, thanks! [1/1] blk-cgroup: Flush stats before releasing blkcg_gq commit: 20cb1c2fb7568a6054c55defe044311397e01ddb Best regards, -- Jens Axboe