lkml.org 
[lkml]   [2018]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 05/12] ipc/util.c: correct comment in ipc_obtain_object_check
    On Mon, 09 Jul 2018, Manfred Spraul wrote:

    >The comment that explains ipc_obtain_object_check is wrong:
    >The function checks the sequence number, not the reference
    >counter.
    >Note that checking the reference counter would be meaningless:
    >The reference counter is decreased without holding any locks,
    >thus an object with kern_ipc_perm.deleted=true may disappear at
    >the end of the next rcu grace period.
    >
    >Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
    >Cc: Davidlohr Bueso <dave@stgolabs.net>

    Reviewed-by: Davidlohr Bueso <dbueso@suse.de>

    \
     
     \ /
      Last update: 2018-07-09 20:47    [W:4.066 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site