On Wed, 08 Feb 2023 07:35:14 +0100, Christoph Hellwig wrote: > While del_gendisk ensures there is no outstanding I/O on the queue, > it can't prevent block layer users from building new I/O. > > This leads to a NULL ->root_blkg reference in bio_associate_blkg when > allocating a new bio on a shut down file system. Delay freeing the > blk-cgroup subsystems from del_gendisk until disk_release to make > sure the blkg and throttle information is still avaіlable for bio > submitters, even if those bios will immediately fail. > > [...] Applied, thanks! [1/1] blk-cgroup: delay calling blkcg_exit_disk until disk_release commit: c43332fe028c252a2a28e46be70a530f64fc3c9d Best regards, -- Jens Axboe