android_kernel_xiaomi_sm8350/ipc
Pierre Peiffer c530c6ac7e IPC: cleanup some code and wrong comments about semundo list managment
Some comments about sem_undo_list seem wrong.
About the comment above unlock_semundo:
"... If task2 now exits before task1 releases the lock (by calling
unlock_semundo()), then task1 will never call spin_unlock(). ..."

This is just wrong, I see no reason for which task1 will not call
spin_unlock... The rest of this comment is also wrong... Unless I
miss something (of course).

Finally, (un)lock_semundo functions are useless, so remove them
for simplification. (this avoids an useless if statement)

Signed-off-by: Pierre Peiffer <pierre.peiffer@bull.net>
Cc: Nadia Derbey <Nadia.Derbey@bull.net>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-19 11:53:48 -07:00
..
compat_mq.c
compat.c fix logic error in ipc compat semctl() 2007-07-06 10:23:43 -07:00
ipc_sysctl.c ipc namespace: remove config ipc ns fix 2007-10-17 08:42:57 -07:00
Makefile
mqueue.c pid namespaces: changes to show virtual ids to user 2007-10-19 11:53:40 -07:00
msg.c ipc: remove unneeded parameters 2007-10-19 11:53:48 -07:00
msgutil.c
sem.c IPC: cleanup some code and wrong comments about semundo list managment 2007-10-19 11:53:48 -07:00
shm.c ipc: remove unneeded parameters 2007-10-19 11:53:48 -07:00
util.c fix idr_find() locking 2007-10-19 11:53:48 -07:00
util.h ipc: remove unneeded parameters 2007-10-19 11:53:48 -07:00