Re: [PATCH net-next] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc
From: Eric Dumazet
Date: Thu Sep 03 2020 - 03:25:03 EST
On 9/2/20 6:14 PM, Yunsheng Lin wrote:
>
> It seems semantics for some_qdisc_is_busy() is changed, which does not only do
> the checking, but also do the reseting?
Yes, obviously, we would have to rename to a better name.
>
> Also, qdisc_reset() could be called multi times for the same qdisc if some_qdisc_is_busy()
> return true multi times?
This should not matter, qdisc_reset() can be called multiple times,
as we also call it from qdisc_destroy() anyway.