summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-03-08 21:07:17 +0300
committerThomas Gleixner <tglx@linutronix.de>2020-03-10 00:33:09 +0300
commit8d67743653dce5a0e7aa500fcccb237cde7ad88e (patch)
tree777ab98cc4f98ecf6d7ed407672811a91a57e9d5 /include
parent8019ad13ef7f64be44d4f892af9c840179009254 (diff)
downloadlinux-8d67743653dce5a0e7aa500fcccb237cde7ad88e.tar.xz
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 <rong.a.chen@intel.com> Decoded-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Rong Chen <rong.a.chen@intel.com> Link: https://lkml.kernel.org/r/87h7yy90ve.fsf@nanos.tec.linutronix.de
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions