Re: [PATCH 1/3] blk-iolatency: clear delay state when freeing policy data
From: Tejun Heo
Date: Mon Aug 10 2026 - 14:50:56 EST
On Thu, Aug 06, 2026 at 11:37:18AM -0700, Usama Arif wrote:
> static void iolatency_pd_free(struct blkg_policy_data *pd)
> {
> + struct blkcg_gq *blkg = pd_to_blkg(pd);
> +
> + /*
> + * Groups throttled as collateral have min_lat_nsec == 0, so
> + * iolatency_pd_offline() leaves their delay set. Drop it here, where
> + * no in-flight bio can re-arm it via check_scale_change().
> + */
> + if (blkg)
When can blkg be NULL here?
Thanks.
--
tejun