linux/fs/resctrl
Tony Luck 2c10b3fa5b fs/resctrl: Ensure default group reports tasks on monitor-only systems
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: e6b2fac36f ("x86/resctrl: Use is_closid_match() in more places")
Closes: https://sashiko.dev/#/patchset/20260831174421.13921-1-tony.luck%40intel.com?part=9
Reported-by: Sashiko <sashiko-bot@kernel.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://patch.msgid.link/20261009193923.15498-1-tony.luck@intel.com
2026-10-09 17:43:05 -07:00
..
ctrlmondata.c fs/resctrl: Factor MBA parse-time conversion to be per-arch 2026-09-14 08:20:25 -07:00
internal.h fs/resctrl: Prevent deadlock and use-after-free in info file handlers 2026-07-13 13:06:07 -07:00
Kconfig
Makefile
monitor_trace.h
monitor.c x86,fs/resctrl: Add event group descriptions for Intel Diamond Rapids 2026-09-30 22:47:08 -07:00
pseudo_lock.c fs/resctrl: Simplify pseudo_lock_measure_trigger() 2026-09-17 12:08:47 -07:00
rdtgroup.c fs/resctrl: Ensure default group reports tasks on monitor-only systems 2026-10-09 17:43:05 -07:00