Whamcloud - gitweb
LU-8130 ptlrpc: convert conn_hash to rhashtable 16/33616/20
authorMr NeilBrown <neilb@suse.de>
Tue, 7 Apr 2020 16:20:47 +0000 (12:20 -0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 28 Jun 2020 02:47:28 +0000 (02:47 +0000)
commit37b29a8f709aa4bd2e22cbb3549257b28cd85610
treecdd7ba6954377d4ee5ac27d48b1c115c8218e408
parent513dde601d2e927566f80ffdae4f381718864747
LU-8130 ptlrpc: convert conn_hash to rhashtable

Linux has a resizeable hashtable implementation in lib,
so we should use that instead of having one in libcfs.

This patch converts the ptlrpc conn_hash to use rhashtable.
In the process we gain lockless lookup.

As connections are never deleted until the hash table is destroyed,
there is no need to count the reference in the hash table.  There
is also no need to enable automatic_shrinking.

Linux-commit: ac2370ac2bc5215daf78546cd8d925510065bb7f

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I0537564ba544ed06be42ba243606a884a1290f20
Reviewed-on: https://review.whamcloud.com/33616
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_net.h
lustre/include/obd_support.h
lustre/ldlm/ldlm_lib.c
lustre/ptlrpc/connection.c