Whamcloud - gitweb
LU-8130 libcfs: port working hash from upstream 89/33789/5
authorJames Simmons <uja.ornl@yahoo.com>
Tue, 15 Jan 2019 16:25:54 +0000 (11:25 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 11 Feb 2019 03:22:07 +0000 (03:22 +0000)
commit1658ae30a0e97e7f4018d8cba67e459078470d1a
treea5399c9b96276eb702bcf369620ea5710c9aa575
parent9667225cdcf7308402893ff7216fce26df7ee04a
LU-8130 libcfs: port working hash from upstream

The hash_[32|64] function in pre-4.6 kernels produce hashes
with poor distributions which result in high collision rates.
Backport those improvements for the pre-4.6 kernels Lustre
supports. Details can be read here:

https://lwn.net/Articles/687494

Test-Parameters: trivial
Change-Id: Id2436ba8be2d3ed482c5386b79710f594d5b3e59
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/33789
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/linux-hash.h