[PATCH 0/6] rhashtable: assorted fixes and enhancements

From: NeilBrown
Date: Mon Mar 26 2018 - 21:51:20 EST


Hi,
I'm hoping to use rhashtable in lustre, to replace the resizeable
hashtable implementation in libcfs.
While working through the conversion I found some minor bugs in the
rhashtable code and documentation, and some areas where enhancements
could make rhashtable a better fit for lustre.

Following 6 patches are the result. Please review.

It would help me if I could get an Ack for these patches, and could
then submit them through the drivers/staging tree together with the
lustre changes that make use to rhashtable. The first 2 are mostly
just fixes to comments and can go in through the netdev tree if you
prefer - the last 4 are needed for lustre to work
correctly/optimally.

Thanks,
NeilBrown


---

NeilBrown (6):
rhashtable: improve documentation for rhashtable_walk_peek()
rhashtable: remove outdated comments about grow_decision etc
rhashtable: reset iter when rhashtable_walk_start sees new table
rhashtable: allow a walk of the hash table without missing objects.
rhashtable: support guaranteed successful insertion.
rhashtable: allow element counting to be disabled.


include/linux/rhashtable.h | 89 ++++++++++++++++++++++++++++----------
lib/rhashtable.c | 102 +++++++++++++++++++++++++++++++-------------
2 files changed, 136 insertions(+), 55 deletions(-)

--
Signature