Re: [PATCH v12 09/25] fs/resctrl: Remove redundant calls to resctrl_{alloc,mon}_capable()

From: Luck, Tony

Date: Tue Sep 22 2026 - 16:40:35 EST


On Mon, Sep 21, 2026 at 12:45:18PM -0500, Babu Moger wrote:
> Hi Tony,
>
> On 9/16/26 18:13, Tony Luck wrote:
> > resctrl_mon_capable() indicates whether any monitoring resources
> > are enabled on the system. It does this by scanning all resources.
> >
> > Redundant calls to resctrl_mon_capable() in hot code paths should
> > be eliminated. There are two prime examples:
>
> two -> three ?

Yes. The is_closid_match() was a recent addition and I forgot to update
the count when adding the new case.

Thanks for catching this.
>
> Thanks
> Babu

-Tony
>