diff options
author | Mark Brown <[email protected]> | 2021-01-22 13:20:42 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-01-22 14:03:07 +0000 |
commit | 14a71d509ac809dcf56d7e3ca376b15d17bd0ddd (patch) | |
tree | 9b8c1e9d09c28e66d79c0bf8d49b0ee89ce630ff /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace | |
parent | 51dfb6ca3728bd0a0a3c23776a12d2a15a1d2457 (diff) |
regulator: Fix lockdep warning resolving supplies
With commit eaa7995c529b54 (regulator: core: avoid
regulator_resolve_supply() race condition) we started holding the rdev
lock while resolving supplies, an operation that requires holding the
regulator_list_mutex. This results in lockdep warnings since in other
places we take the list mutex then the mutex on an individual rdev.
Since the goal is to make sure that we don't call set_supply() twice
rather than a concern about the cost of resolution pull the rdev lock
and check for duplicate resolution down to immediately before we do the
set_supply() and drop it again once the allocation is done.
Fixes: eaa7995c529b54 (regulator: core: avoid regulator_resolve_supply() race condition)
Reported-by: Marek Szyprowski <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions