Re: [PATCH v2 5/6] powerpc: powernv: ocxl: use lock guard for mutex

2025-03-18 Thread Andrew Donnellan
On Fri, 2025-03-14 at 17:15 +0530, Shrikanth Hegde wrote: > use guard(mutex) for scope based resource management of mutex. > This would make the code simpler and easier to maintain. > > More details on lock guards can be found at > https://lore.kernel.org/all/20230612093537.614161...@infradead.org

[PATCH v2 5/6] powerpc: powernv: ocxl: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
use guard(mutex) for scope based resource management of mutex. This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.kernel.org/all/20230612093537.614161...@infradead.org/T/#u Signed-off-by: Shrikanth Hegde --- arch/powerpc/platforms/p