diff options
author | Will Deacon <will.deacon@arm.com> | 2019-04-08 14:23:17 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2019-04-26 13:57:43 +0100 |
commit | 03110a5cb2161690ae5ac04994d47ed0cd6cef75 (patch) | |
tree | 9e228d9efb081b69dfb85f31b5ac314d75b39893 /tools/perf/scripts/python/compaction-times.py | |
parent | 6b4f4bc9cb22875f97023984a625386f0c7cc1c0 (diff) |
arm64: futex: Bound number of LDXR/STXR loops in FUTEX_WAKE_OP
Our futex implementation makes use of LDXR/STXR loops to perform atomic
updates to user memory from atomic context. This can lead to latency
problems if we end up spinning around the LL/SC sequence at the expense
of doing something useful.
Rework our futex atomic operations so that we return -EAGAIN if we fail
to update the futex word after 128 attempts. The core futex code will
reschedule if necessary and we'll try again later.
Cc: <stable@kernel.org>
Fixes: 6170a97460db ("arm64: Atomic operations")
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions