Re: [PATCH v17 13/32] x86,fs/resctrl: Add an architectural hook called for each mount

From: Borislav Petkov
Date: Mon Jan 05 2026 - 15:05:23 EST


On Mon, Jan 05, 2026 at 11:39:29AM -0800, Luck, Tony wrote:
> Learn something new every day. Yes, <linux/once.h> looks possible here.
>
> Though I believe I'll need the DO_ONCE_SLEEPABLE() version since
> resctrl_arch_pre_mount() grabs a mutex and various called functions
> allocate memory using kmalloc().

Aha.

Ok, if it works and passes testing, I could wait for you to send me an updated
patch and drop this one.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette