Skip to content
Snippets Groups Projects
Commit da27f796 authored by Rik van Riel's avatar Rik van Riel Committed by Al Viro
Browse files

ipc,namespace: batch free ipc_namespace structures


Instead of waiting for an RCU grace period between each ipc_namespace
structure that is being freed, wait an RCU grace period for every batch
of ipc_namespace structures.

Thanks to Al Viro for the suggestion of the helper function.

This speeds up the run time of the test case that allocates ipc_namespaces
in a loop from 6 minutes, to a little over 1 second:

real	0m1.192s
user	0m0.038s
sys	0m1.152s

Signed-off-by: default avatarRik van Riel <riel@surriel.com>
Reported-by: default avatarChris Mason <clm@meta.com>
Tested-by: default avatarGiuseppe Scrivano <gscrivan@redhat.com>
Suggested-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a80c4adc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment