Messages in this thread | | | From | Thomas Gleixner <> | Subject | Re: Confused about hlist_unhashed_lockless() | Date | Fri, 31 Jan 2020 20:47:23 +0100 |
| |
Eric Dumazet <edumazet@google.com> writes: > On Fri, Jan 31, 2020 at 9:21 AM Will Deacon <will@kernel.org> 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
| |