Re: [PATCH net v2 1/2] page_pool: fix timing for checking and disabling napi_local

From: Jakub Kicinski
Date: Tue Oct 08 2024 - 20:40:33 EST


On Wed, 25 Sep 2024 15:57:06 +0800 Yunsheng Lin wrote:
> Use rcu mechanism to avoid the above concurrent access problem.
>
> Note, the above was found during code reviewing on how to fix
> the problem in [1].

The driver must make sure NAPI cannot be running while
page_pool_destroy() is called. There's even an WARN()
checking this.. if you know what to look for.