lkml.org 
[lkml]   [2020]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Confused about hlist_unhashed_lockless()
    Date
    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

    \
     
     \ /
      Last update: 2020-01-31 20:48    [W:3.087 / U:0.396 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site