Re: [RESEND PATCH v4] devres: Refactor using guards

2024-09-12 Thread Andrea Calabrese
Hello Greg, On Tue, Sep 10, 2024 at 03:15:21PM +0200, Andrea Calabrese wrote: Code refactoring using the recent guard and scoped_guard macros for automatic cleanup of the spinlocks. This does not change the effective behaviour of the kernel, but guarantees a cleaned-up exit from each lock, auto

Re: [RESEND PATCH v4] devres: Refactor using guards

2024-09-11 Thread Greg KH
On Tue, Sep 10, 2024 at 03:15:21PM +0200, Andrea Calabrese wrote: > Code refactoring using the recent guard and scoped_guard macros > for automatic cleanup of the spinlocks. This does not change the > effective behaviour of the kernel, but guarantees a cleaned-up exit from > each lock, automaticall

[RESEND PATCH v4] devres: Refactor using guards

2024-09-10 Thread Andrea Calabrese
Code refactoring using the recent guard and scoped_guard macros for automatic cleanup of the spinlocks. This does not change the effective behaviour of the kernel, but guarantees a cleaned-up exit from each lock, automatically avoiding potential deadlocks. Signed-off-by: Andrea Calabrese --- Dif