Thread (6 messages) flat view 6 messages, 3 authors, 2023-09-19

Re: nft_rhash_walk, rhashtable and resize event

From: Alexander Aring <aahringo@redhat.com>
Date: 2023-09-18 12:38:26
Also in: gfs2

Hi,

On Mon, Sep 18, 2023 at 8:26 AM Herbert Xu [off-list ref] wrote:
On Mon, Sep 18, 2023 at 01:59:47PM +0200, Pablo Neira Ayuso wrote:
quoted
One more question: this walk might miss entries but may it also
duplicate the same entries?
It depends on what happens during the walk.  If you're lucky
and no resize event occurs during the walk, then you won't miss
any entries or see duplicates.

When a resize event does occur, then we will tell you that it
happened by returning EAGAIN.  It means that you should start
from the beginning and redo the whole walk.  If you do that
To confirm this, redo the whole walk means starting at
rhashtable_walk_start() again?

Thanks.

- Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help