Re: [bpf-next V5 PATCH 11/15] page_pool: refurbish version of page_pool code

Eric Dumazet
2018-03-23T13:29:57Z

On 03/23/2018 05:18 AM, Jesper Dangaard Brouer wrote:

> +
> +void page_pool_destroy_rcu(struct page_pool *pool)
> +{
> + call_rcu(&pool->rcu, __page_pool_destroy_rcu);
> +}
> +EXPORT_SYMBOL(page_pool_destroy_rcu);
>

Why do we need to respect one rcu grace period before destroying a page pool ?

In any case, this should be called page_pool_destroy()