pidns: simpler allocation of pid_* caches
Those pid_* caches are created on demand when a process advances to the new level of pid namespace. Which means pointers are stable, write only and thus can be packed into an array instead of spreading them over and using lists(!) to find them. Both first and subsequent clone/unshare(CLONE_NEWPID) become faster. Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com> Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
Showing
想要评论请 注册 或 登录