diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-11-11 23:03:25 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-11-16 11:24:04 +0100 |
commit | 4804e382c117ce213cd5c43512cf4b1d71bb2650 (patch) | |
tree | a655461687013c631b6799b65d57943ea7840981 /scripts/gdb/linux/timerlist.py | |
parent | ea5f1cd7ab494f65f50f338299eabb40ad6a1767 (diff) |
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 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions