Re: [PATCH v3 1/9] fs/resctrl: Move functions to avoid forward references in subsequent fixes
From: Ben Horgan
Date: Thu May 28 2026 - 06:18:16 EST
Hi Reinette,
On 5/22/26 20:15, Reinette Chatre wrote:
> From: Tony Luck <tony.luck@xxxxxxxxx>
>
> rdt_get_tree() manages resctrl fs mount and rdt_kill_sb() manages resctrl
> fs unmount.
>
> There is significant overlap between error cleanup during resctrl mount
> failure and cleanup on resctrl unmount yet the cleanup is not done
> consistently in these two flows.
>
> Pull some cleanup functions before rdt_get_tree() in preparation for
> a new helper that can be shared between mount and unmount.
>
> Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx>
> Signed-off-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
Reviewed-by: Ben Horgan <ben.horgan@xxxxxxx>
Thanks,
Ben