Re: [PATCH 7/9] rhashtable: Per bucket locks & deferred expansion/shrinking

From
Herbert Xu <herbert@gondor.apana.org.au>
Date
2015-01-16 20:50:31
Also in
netfilter-devel
Reply to
Patrick McHardy, 2015-01-16
On Fri, Jan 16, 2015 at 07:35:57PM +0000, Patrick McHardy wrote:
Well, rhashtable (or generally resizing) will make it a lot worse.
Usually we at worst miss entries which were added during the dump,
which is made up by the notifications.

With resizing we might miss anything, its completely undeterministic.
Correct.  If you want to have a stable dump you will need to have
data structure outside the hash table.  For example, with xfrm_state
we do it with a linked list.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Thread (46 messages) 46 messages, 7 authors, last reply 2015-01-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help