aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2017-09-21 10:44:36 -0700
committerRafael J. Wysocki <[email protected]>2017-09-26 00:44:32 +0200
commite4d8ae00169f7686e1da5a62e5cf797d12bf8822 (patch)
tree259c6369f13b73c0e5ed857f0cd6e289f96bac7c /tools/perf/scripts/python/export-to-sqlite.py
parente19b205be43d11bff638cad4487008c48d21c103 (diff)
PM / OPP: Call notifier without holding opp_table->lock
The notifier callbacks may want to call some OPP helper routines which may try to take the same opp_table->lock again and cause a deadlock. One such usecase was reported by Chanwoo Choi, where calling dev_pm_opp_disable() leads us to the devfreq's OPP notifier handler, which further calls dev_pm_opp_find_freq_floor() and it deadlocks. We don't really need the opp_table->lock to be held across the notifier call though, all we want to make sure is that the 'opp' doesn't get freed while being used from within the notifier chain. We can do it with help of dev_pm_opp_get/put() as well. Let's do it. Cc: 4.11+ <[email protected]> # 4.11+ Fixes: 5b650b388844 "PM / OPP: Take kref from _find_opp_table()" Reported-by: Chanwoo Choi <[email protected]> Tested-by: Chanwoo Choi <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Reviewed-by: Chanwoo Choi <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions