Home
last modified time | relevance | path

Searched hist:"4804 e382c117ce213cd5c43512cf4b1d71bb2650" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/arch/x86/include/asm/
H A Dio_bitmap.hdiff 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 Dioport.cdiff 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 Dprocess.cdiff 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>