On Wed, Feb 01, 2023 at 02:41:06PM +0100, Christoph Hellwig wrote: > There is no need to initialize the cgroup code before the disk is marked > live. Moving the cgroup initialization earlier will help to have a > fully initialized struct device in the gendisk for the cgroup code to > use in the future. Similarly tear the cgroup information down in > del_gendisk to be symmetric and because none of the cgroup tracking is > needed once non-passthrough I/O stops. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > Reviewed-by: Andreas Herrmann <aherrmann@xxxxxxx> For 01 - 02: Acked-by: Tejun Heo <tj@xxxxxxxxxx> Thanks. -- tejun