diff options
| author | Peter Zijlstra <[email protected]> | 2016-09-02 13:42:12 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-10-25 11:31:53 +0200 |
| commit | 5bbd7e644378334700889fb762d5893985a7311f (patch) | |
| tree | 4de0e1d4dcb783e6cb86ba234ff79f85ffab18a7 /tools/perf/scripts/python | |
| parent | 9d659ae14b545c4296e812c70493bfdc999b5c1c (diff) | |
locking/mutex: Restructure wait loop
Doesn't really matter yet, but pull the HANDOFF and trylock out from
under the wait_lock.
The intention is to add an optimistic spin loop here, which requires
we do not hold the wait_lock, so shuffle code around in preparation.
Also clarify the purpose of taking the wait_lock in the wait loop, its
tempting to want to avoid it altogether, but the cancellation cases
need to to avoid losing wakeups.
Suggested-by: Waiman Long <[email protected]>
Tested-by: Jason Low <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions