From: Pierre Peiffer Date: Fri, 19 Oct 2007 06:40:55 +0000 (-0700) Subject: IPC: cleanup some code and wrong comments about semundo list managment X-Git-Tag: v2.6.24-rc1~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c530c6ac7eb1d4ae1ff6b382d9211be446ee82c6;p=pandora-kernel.git 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 Cc: Nadia Derbey Acked-by: Serge Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed