RE: RE: [PATCH v8 08/21] x86/resctrl: Expand the width of dom_id by replacing mon_data_bits

Luck, Tony
2025-04-22T18:10:48Z

>> kernfs lookups while creating new groups to find the matching one
>> and linking to the same ->priv pointer.
>>
>
> oh ok.
>
> I went back and looked at the history.
> https://lore.kernel.org/all/20250228195913.24895-38-james.morse@arm.com/
>
> So you are saying, kernfs lookup method is much more complex. So, having
> the global list is easy to traverse and efficient?

Complexity in the code to construct the path and do kernfs lookups to walk
that path (since kernfs doesn't provide a routine to do the path walk, just
individual directory lookups). There was some doubt whether James' code
got things right for the SNC case which has an extra sub-level of directories.

The latest version is far simpler to review and decide it is doing the right
thing in all configurations.

-Tony