aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYuanhan Liu <[email protected]>2015-05-08 18:19:05 +1000
committerNeilBrown <[email protected]>2015-06-17 10:00:14 +1000
commit9f3520c3115b451ac1301779fc3c769d94907a70 (patch)
tree32aa25027053b7b97f741015573eda1df59ba28a /tools/perf/scripts/python
parent4c9309c0cce96ea93be638dd243616e56e4bfe7d (diff)
wait: introduce wait_event_exclusive_cmd
It's just a variant of wait_event_cmd(), with exclusive flag being set. For cases like RAID5, which puts many processes to sleep until 1/4 resources are free, a wake_up wakes up all processes to run, but there is one process being able to get the resource as it's protected by a spin lock. That ends up introducing heavy lock contentions, and hurts performance badly. Here introduce wait_event_exclusive_cmd to relieve the lock contention naturally by letting wake_up just wake up one process. Cc: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> v2: its assumed that wait*() and __wait*() have the same arguments - peterz Acked-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Yuanhan Liu <[email protected]> Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions