diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2019-12-18 18:06:31 +0100 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2019-12-18 22:50:21 +0100 |
commit | 102987a83771aa994821d4d982d06faa64c789e4 (patch) | |
tree | 3e5ab5206886ec297a1a97ce80f504d75468ed2f /debian/patches-rt/mm-disable-sloub-rt.patch | |
parent | 479cb120ecb2b3f2c4d929a7b57860248d6f79bd (diff) | |
download | linux-debian-102987a83771aa994821d4d982d06faa64c789e4.tar.gz |
[rt] Update to 5.4.3-rt1 and re-enable
Adjust for context changes due to backport of
e66b39af00f4 ("workqueue: Fix pwq ref leak in rescuer_thread()") and
def98c84b6cd ("workqueue: Fix spurious sanity check failures in
destroy_workqueue()") in 5.4.4.
Diffstat (limited to 'debian/patches-rt/mm-disable-sloub-rt.patch')
-rw-r--r-- | debian/patches-rt/mm-disable-sloub-rt.patch | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/debian/patches-rt/mm-disable-sloub-rt.patch b/debian/patches-rt/mm-disable-sloub-rt.patch index 2fdf58811..d6e130730 100644 --- a/debian/patches-rt/mm-disable-sloub-rt.patch +++ b/debian/patches-rt/mm-disable-sloub-rt.patch @@ -1,32 +1,41 @@ From: Ingo Molnar <mingo@elte.hu> Date: Fri, 3 Jul 2009 08:44:03 -0500 -Subject: mm: Allow only slub on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.2/older/patches-5.2.17-rt9.tar.xz +Subject: mm: Allow only SLUB on RT +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.4/older/patches-5.4.3-rt1.tar.xz + +Memory allocation disables interrupts as part of the allocation and freeing +process. For -RT it is important that this section remain short and don't +depend on the size of the request or an internal state of the memory allocator. +At the beginning the SLAB memory allocator was adopted for RT's needs and it +required substantial changes. Later, with the addition of the SLUB memory +allocator we adopted this one as well and the changes were smaller. More +important, due to the design of the SLUB allocator it performs better and its +worst case latency was smaller. In the end only SLUB remained supported. Disable SLAB and SLOB on -RT. Only SLUB is adopted to -RT needs. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> - +Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- init/Kconfig | 2 ++ 1 file changed, 2 insertions(+) --- a/init/Kconfig +++ b/init/Kconfig -@@ -1693,6 +1693,7 @@ choice +@@ -1805,6 +1805,7 @@ choice config SLAB bool "SLAB" -+ depends on !PREEMPT_RT_FULL ++ depends on !PREEMPT_RT select HAVE_HARDENED_USERCOPY_ALLOCATOR help The regular slab allocator that is established and known to work -@@ -1713,6 +1714,7 @@ config SLUB +@@ -1825,6 +1826,7 @@ config SLUB config SLOB depends on EXPERT bool "SLOB (Simple Allocator)" -+ depends on !PREEMPT_RT_FULL ++ depends on !PREEMPT_RT help SLOB replaces the stock allocator with a drastically simpler allocator. SLOB is generally more space efficient but |