Re: [PATCH v4 4/7] fs,x86/resctrl: Add architecture hooks for every mount/unmount

From: Reinette Chatre

Date: Wed Apr 22 2026 - 18:11:09 EST


Hi Tony,

On 4/22/26 2:59 PM, Luck, Tony wrote:
>>> Seems OK. But to make sure that events are accessible, architecture will
>>> now have to "hold" the pmt_telemetry module regardless of whether
>>> resctrl file system is mounted.
>>
>> Could you please elaborate why this is required? if I understand correctly the
>> "hold" on the pmt_telemetry module will be done by itself between the
>> intel_pmt_get_regions_by_feature() and intel_pmt_put_feature_group() calls.
>
> If architecture code runs completely asynchronously to resctrl mount/unmount

Since there is shared state that is managed via existing locks I do not see
architecture running completely asynchronously to resctrl mount/unmount.

> when would it be safe to call intel_pmt_put_feature_group()?

I think I am missing something here since I have been assuming all along
that intel_pmt_put_feature_group() is and will continue to be called from the
new unmount handler.

Reinette