linux_dsm_epyc7002/arch/arm64/include
Will Deacon 03110a5cb2 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: 6170a97460 ("arm64: Atomic operations")
Signed-off-by: Will Deacon <will.deacon@arm.com>
2019-04-26 13:57:43 +01:00
..
asm arm64: futex: Bound number of LDXR/STXR loops in FUTEX_WAKE_OP 2019-04-26 13:57:43 +01:00
uapi/asm kbuild: force all architectures except um to include mandatory-y 2019-03-17 12:56:32 +09:00