From: Davidlohr Bueso Date: Wed, 11 Sep 2013 21:26:26 +0000 (-0700) Subject: ipc: document general ipc locking scheme X-Git-Tag: v3.12-rc1~52^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05603c44a7627793219b0bd9a7b236099dc9cd9d;p=pandora-kernel.git ipc: document general ipc locking scheme As suggested by Andrew, add a generic initial locking scheme used throughout all sysv ipc mechanisms. Documenting the ids rwsem, how rcu can be enough to do the initial checks and when to actually acquire the kern_ipc_perm.lock spinlock. I found that adding it to util.c was generic enough. Signed-off-by: Davidlohr Bueso Tested-by: Sedat Dilek Cc: Rik van Riel Cc: Manfred Spraul Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed