aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2021-09-23 14:11:04 -0300
committerPeter Zijlstra <[email protected]>2021-10-07 13:51:11 +0200
commitbff7c57c2f50dca7b5e320f499e0898c3fb8a9ff (patch)
tree0e7e8366851e1f33ad0d929fb5e78e1ae026ff93 /tools/testing/selftests/bpf/progs/test_prog_array_init.c
parenta046f1a0d3e320cfee6bdac336416a537f49e7c6 (diff)
futex: Simplify double_lock_hb()
We need to make sure that all requeue operations take the hash bucket locks in the same order to avoid deadlock. Simplify the current double_lock_hb implementation by making sure hb1 is always the "smallest" bucket to avoid extra checks. [André: Add commit description] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: André Almeida <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: André Almeida <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions