Thread (6 messages) read the whole thread 6 messages, 3 authors, 2023-09-19

Re: nft_rhash_walk, rhashtable and resize event

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2023-09-19 03:24:39
Also in: gfs2

On Mon, Sep 18, 2023 at 08:38:09AM -0400, Alexander Aring wrote:
To confirm this, redo the whole walk means starting at
rhashtable_walk_start() again?
According to the documentation:

 * Returns -EAGAIN if resize event occurred.  Note that the iterator
 * will rewind back to the beginning and you may use it immediately
 * by calling rhashtable_walk_next.

So you shouldn't have to do anything other than keep on
iterating (if you wish to).

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help