Re: [RFC v1 1/4] xfs: Re-introduce xg_active_wq field in struct xfs_group

Christoph Hellwig
2026-02-19T06:13:11Z

On Thu, Feb 19, 2026 at 11:33:51AM +0530, Nirjhar Roy (IBM) wrote:
> The reason for this change is that the online shrink code will wait
> for all the active references to come down to zero before actually
> starting the shrink process (only if the number of rtextents that
> we are trying to remove is worth 1 or more rtgroups).

I'll look over the actual usage, but please try to avoid bloating
structures for very rare uses like this. I think this would be a
perfect candidate for wait_var_event / wake_up_var.