> When rte_hash_add_key_data() overwrites an existing key, the old data
> pointer is silently lost. With RCU-protected readers still potentially
> accessing the old data, the application has no safe way to free it.
> 
> When RCU is configured with a free_key_data_func callback, automatically
> enqueue the old data for deferred freeing via the RCU defer queue on
> overwrite. In SYNC mode, synchronize and call free_key_data_func
> directly.
> 
> Cc: [email protected]
> Fixes: 769b2de7fb52 ("hash: implement RCU resources reclamation")
> 
> Signed-off-by: Robin Jarry <[email protected]>
> ---

Acked-by: Konstantin Ananyev <[email protected]> 

> 2.53.0
> 

Reply via email to