Re: Confused about hlist_unhashed_lockless()
From: Thomas Gleixner
Date: Fri Jan 31 2020 - 14:47:36 EST
Eric Dumazet <edumazet@xxxxxxxxxx> writes:
> On Fri, Jan 31, 2020 at 9:21 AM Will Deacon <will@xxxxxxxxxx> wrote:
>> Without serialisation, timer_pending() as currently implemented does
>> not reliably tell you whether the timer is in the hlist. Is that not a
>> problem?
>
> No it is not a problem.
Even if we would take the base lock then this is just a snapshot, which
can be wrong at the moment the lock is dropped. So why bother?
Thanks,
tglx