Searched hist:"4804 e382c117ce213cd5c43512cf4b1d71bb2650" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/arch/x86/include/asm/ |
H A D | io_bitmap.h | diff 4804e382c117ce213cd5c43512cf4b1d71bb2650 Mon Nov 11 16:03:25 CST 2019 Thomas Gleixner <tglx@linutronix.de> 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>
|
/openbmc/linux/arch/x86/kernel/ |
H A D | ioport.c | diff 4804e382c117ce213cd5c43512cf4b1d71bb2650 Mon Nov 11 16:03:25 CST 2019 Thomas Gleixner <tglx@linutronix.de> 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>
|
H A D | process.c | diff 4804e382c117ce213cd5c43512cf4b1d71bb2650 Mon Nov 11 16:03:25 CST 2019 Thomas Gleixner <tglx@linutronix.de> 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>
|