Re: [v5 10/34] arm_mpam: Add probe/remove for mpam msc driver and kbuild boiler plate

From: Markus Elfring
Date: Tue Nov 18 2025 - 06:30:10 EST


>> Does anything hinder you to integrate statements like “guard(mutex)(&mpam_list_lock);” here?
>> https://elixir.bootlin.com/linux/v6.18-rc6/source/include/linux/mutex.h#L228
>
> The mpam_list_lock needs to be dropped before the end of the scope as it
> is also taken in mpam_msc_drv_remove().

Would you eventually prefer to use scoped_guard() calls at any more source code places?
https://elixir.bootlin.com/linux/v6.18-rc6/source/include/linux/cleanup.h#L316-L319

Regards,
Markus