Chuck Lever c4c649ab41 NFSD: Convert filecache to rhltable
While we were converting the nfs4_file hashtable to use the kernel's
resizable hashtable data structure, Neil Brown observed that the
list variant (rhltable) would be better for managing nfsd_file items
as well. The nfsd_file hash table will contain multiple entries for
the same inode -- these should be kept together on a list. And, it
could be possible for exotic or malicious client behavior to cause
the hash table to resize itself on every insertion.

A nice simplification is that rhltable_lookup() can return a list
that contains only nfsd_file items that match a given inode, which
enables us to eliminate specialized hash table helper functions and
use the default functions provided by the rhashtable implementation).

Since we are now storing nfsd_file items for the same inode on a
single list, that effectively reduces the number of hash entries
that have to be tracked in the hash table. The mininum bucket count
is therefore lowered.

Light testing with fstests generic/531 show no regressions.

Suggested-by: Neil Brown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2023-04-26 09:04:59 -04:00
..
2021-12-03 18:44:06 +01:00
2022-11-28 12:54:44 -05:00
2023-03-10 09:38:47 -05:00
2021-10-02 15:51:10 -04:00
2023-02-20 11:10:38 -08:00
2023-02-22 14:21:40 -08:00
2023-02-22 14:21:40 -08:00
2023-02-22 14:21:40 -08:00
2022-09-26 14:02:47 -04:00
2022-10-20 10:13:27 +02:00
2022-11-28 12:54:44 -05:00
2023-02-22 14:21:40 -08:00
2023-04-04 11:20:55 -07:00
2023-02-20 09:20:59 -05:00
2023-02-20 11:53:11 -08:00
2023-02-22 14:21:40 -08:00
2022-09-26 14:02:47 -04:00
2021-12-13 13:42:51 -05:00
2023-03-21 14:48:38 -07:00
2023-02-20 09:20:21 -05:00