Re: [PATCH v2] fs/resctrl: Ensure default group reports tasks on monitor-only systems

From: Reinette Chatre

Date: Fri Oct 09 2026 - 17:20:18 EST




On 10/9/26 12:39 PM, Tony Luck wrote:
> resctrl can be mounted on a system that supports monitoring but not allocation.
>
> On such a system reading the "tasks" file in the default group reports no
> tasks, even when there are tasks assigned to the default group. This problem
> occurs because the check for whether a task belongs to a CTRL_MON group is
> gated by a check for whether the system supports allocation.
>
> The resctrl_arch_alloc_capable() check in is_closid_match() breaks task
> reporting for the default group on monitor-only systems so remove this
> check. On systems that support allocation the check is redundant.
>
> Fixes: e6b2fac36fcc ("x86/resctrl: Use is_closid_match() in more places")
> Reported-by: Sashiko <sashiko-bot@xxxxxxxxxx>
> Closes: https://sashiko.dev/#/patchset/20260831174421.13921-1-tony.luck%40intel.com?part=9
> Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx>
> ---
Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette