Messages in this thread | | | Date | Mon, 9 Jul 2018 11:46:38 -0700 | From | Davidlohr Bueso <> | Subject | Re: [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>
| |