aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/x86
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-11-11 23:03:25 +0100
committerThomas Gleixner <tglx@linutronix.de>2019-11-16 11:24:04 +0100
commit4804e382c117ce213cd5c43512cf4b1d71bb2650 (patch)
treea655461687013c631b6799b65d57943ea7840981 /tools/testing/selftests/x86
parentx86/ioperm: Remove bitmap if all permissions dropped (diff)
downloadwireguard-linux-4804e382c117ce213cd5c43512cf4b1d71bb2650.tar.xz
wireguard-linux-4804e382c117ce213cd5c43512cf4b1d71bb2650.zip
x86/ioperm: Share I/O bitmap if identical
The I/O bitmap is duplicated on fork. That's wasting memory and slows down fork. There is no point to do so. As long as the bitmap is not modified it can be shared between threads and processes. Add a refcount and just share it on fork. If a task modifies the bitmap then it has to do the duplication if and only if it is shared. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Andy Lutomirski <luto@kernel.org>
Diffstat (limited to 'tools/testing/selftests/x86')
0 files changed, 0 insertions, 0 deletions