Whamcloud - gitweb
LU-8130 libcfs: port working hash from upstream 79/35179/6
authorJames Simmons <uja.ornl@yahoo.com>
Tue, 15 Jan 2019 16:25:54 +0000 (11:25 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 23 Sep 2019 08:43:35 +0000 (08:43 +0000)
commit15db0a3070ec42228d0ac666b4ff089c645f9a46
treec88550d9872a3f64238ae1d58ba78800a9920daa
parentb50b4b7c8f305138154c1e04e31a8edb6cba1a9b
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

Lustre-change: https://review.whamcloud.com/33789
Lustre-commit: 1658ae30a0e97e7f4018d8cba67e459078470d1a

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