[PATCH 02/20] staging: lustre: convert lov_pool to use rhashtable

2018-04-11 Thread NeilBrown
The pools hashtable can be implemented using the rhashtable implementation in lib. This has the benefit that lookups are lock-free. We need to use kfree_rcu() to free a pool so that a lookup racing with a deletion will not access freed memory. rhashtable has no combined lookup-and-delete

[PATCH 02/20] staging: lustre: convert lov_pool to use rhashtable

2018-04-11 Thread NeilBrown
The pools hashtable can be implemented using the rhashtable implementation in lib. This has the benefit that lookups are lock-free. We need to use kfree_rcu() to free a pool so that a lookup racing with a deletion will not access freed memory. rhashtable has no combined lookup-and-delete