aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2020-03-08 19:07:17 +0100
committerThomas Gleixner <[email protected]>2020-03-09 22:33:09 +0100
commit8d67743653dce5a0e7aa500fcccb237cde7ad88e (patch)
tree777ab98cc4f98ecf6d7ed407672811a91a57e9d5 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
parent8019ad13ef7f64be44d4f892af9c840179009254 (diff)
futex: Unbreak futex hashing
The recent futex inode life time fix changed the ordering of the futex key union struct members, but forgot to adjust the hash function accordingly, As a result the hashing omits the leading 64bit and even hashes beyond the futex key causing a bad hash distribution which led to a ~100% performance regression. Hand in the futex key pointer instead of a random struct member and make the size calculation based of the struct offset. Fixes: 8019ad13ef7f ("futex: Fix inode life-time issue") Reported-by: Rong Chen <[email protected]> Decoded-by: Linus Torvalds <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Rong Chen <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions