[PATCH 2/3] shm: Allow exit_shm in parallel if only marking orphans

2014-06-17 Thread Jack Miller
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 beca

[PATCH 2/3] shm: Allow exit_shm in parallel if only marking orphans

2014-06-04 Thread Jack Miller
If shm_rmid_force is not set then we only mark the shmids as orphaned and do not lock, add, or delete any entries into the tree. This is also the default state. Seperate the sysctl on and off case, and only obtain the read lock. The newly aded list head can be deleted uner the read lock because