diff options
author | Jack Miller <millerjo@us.ibm.com> | 2014-08-08 14:23:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 15:57:26 -0700 |
commit | 83293c0f5a6130bf7d60b7b406f4a4de0cadd3d8 (patch) | |
tree | 9800879dfd131c263d57276c29494b06deac7f70 /fs/proc_namespace.c | |
parent | ab602f799159393143d567e5c04b936fec79d6bd (diff) | |
download | op-kernel-dev-83293c0f5a6130bf7d60b7b406f4a4de0cadd3d8.zip op-kernel-dev-83293c0f5a6130bf7d60b7b406f4a4de0cadd3d8.tar.gz |
shm: allow exit_shm in parallel if only marking orphans
If shm_rmid_force (the default state) is not set then the shmids are only
marked as orphaned and does not require any add, delete, or locking of the
tree structure.
Seperate the sysctl on and off case, and only obtain the read lock. The
newly added list head can be deleted under the read lock because we are
only called with current and will only change the semids allocated by this
task and not manipulate the list.
This commit assumes that up_read includes a sufficient memory barrier for
the writes to be seen my others that later obtain a write lock.
Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Jack Miller <millerjo@us.ibm.com>
Cc: Davidlohr Bueso <davidlohr@hp.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc_namespace.c')
0 files changed, 0 insertions, 0 deletions