commit | dd206bec9a446884805370b1c16c1d7a97036777 | [log] [tgz] |
---|---|---|
author | Alexey Dobriyan <adobriyan@gmail.com> | Tue Mar 20 21:51:06 2018 +0300 |
committer | Eric W. Biederman <ebiederm@xmission.com> | Wed Mar 21 09:40:17 2018 -0500 |
tree | eaacdddc5f008401906b962ff1feb4a9cace9bfc | |
parent | 91ab883eb21325ad80f3473633f794c78ac87f51 [diff] |
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: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>