[PATCH v2 12/12] arm_mpam: resctrl: Don't stop early when tearing down a class
Gavin Shan
gshan at redhat.com
Mon Sep 21 22:45:36 PDT 2026
On 9/18/26 12:56 AM, Ben Horgan wrote:
> An MPAM class can back more than one control and more than one
> monitor. mpam_resctrl_teardown_class() iterates through all the controls
> but stops if it finds a match which means classes backing more than one
> class aren't torn down. The same for monitors, in which case the mbwu
> counters will be leaked.
>
> Stop terminating the loops early.
>
> As we are already changing mpam_resctrl_teardown_class() remove the
> misleading comment. It doesn't call resctrl_exit() and isn't required to do
> so as the only caller does it first.
>
> Fixes: fb481ec08699 ("arm_mpam: resctrl: Call resctrl_init() on platforms that can support resctrl")
> Reported-by: Sashiko <sashiko-bot at kernel.org>
> Signed-off-by: Ben Horgan <ben.horgan at arm.com>
> ---
> Changes since v1:
>
> New patch
> ---
> drivers/resctrl/mpam_resctrl.c | 9 +--------
> 1 file changed, 1 insertion(+), 8 deletions(-)
>
Reviewed-by: Gavin Shan <gshan at redhat.com>
More information about the linux-arm-kernel
mailing list