Re: [PATCH] regulator: simplify nested locking
From: Michał Mirosław
Date: Sat Aug 19 2023 - 20:12:24 EST
On Thu, Aug 17, 2023 at 08:52:05PM +0200, Michał Mirosław wrote:
> Simplify regulator locking by removing locking around locking. rdev->ref
> is now accessed only when the lock is taken.
>
> This patch depends on 12235da8c80a ("kernel/locking: Add context to
> ww_mutex_trylock()").
Please ignore for now: this somehow works with DEBUG_LOCK_ALLOC, but
fails without it. I'll post an extracted simplification part of the code
to have it easier to review.
Best Regards
Michał Mirosław