Re: [PATCH 05/12] ipc/util.c: correct comment in ipc_obtain_object_check

From: Davidlohr Bueso
Date: Mon Jul 09 2018 - 14:46:55 EST


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@xxxxxxxxxxxxxxxx>
Cc: Davidlohr Bueso <dave@xxxxxxxxxxxx>

Reviewed-by: Davidlohr Bueso <dbueso@xxxxxxx>