Re: [PATCH] net: raise RCU qs after each threaded NAPI poll

From: Yan Zhai
Date: Tue Feb 27 2024 - 16:18:26 EST


On Tue, Feb 27, 2024 at 10:44 AM Eric Dumazet <edumazet@xxxxxxxxxx> wrote:
>
> Hmm....
> Why napi_busy_loop() does not have a similar problem ?
>
That's a good question. Let me try if I can repro this on a busy loop
as well, since the structure seems very alike.

> It is unclear why rcu_all_qs() in __cond_resched() is guarded by
>
> #ifndef CONFIG_PREEMPT_RCU
> rcu_all_qs();
> #endif
>
>
> Thanks.