]> Git Repo - linux.git/commit
ipc,shm: shorten critical region for shmctl
authorDavidlohr Bueso <[email protected]>
Wed, 11 Sep 2013 21:26:21 +0000 (14:26 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Sep 2013 22:59:41 +0000 (15:59 -0700)
commit2caacaa82a51b78fc0c800e206473874094287ed
tree07dfe1f340d35d907de80f4a80296c72896cef2c
parentc97cb9ccab8c85428ec21eff690642ad2ce1fa8a
ipc,shm: shorten critical region for shmctl

With the *_INFO, *_STAT, IPC_RMID and IPC_SET commands already optimized,
deal with the remaining SHM_LOCK and SHM_UNLOCK commands.  Take the
shm_perm lock after doing the initial auditing and security checks.  The
rest of the logic remains unchanged.

Signed-off-by: Davidlohr Bueso <[email protected]>
Tested-by: Sedat Dilek <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Manfred Spraul <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
ipc/shm.c
This page took 0.054462 seconds and 4 git commands to generate.