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/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.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/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch')
-rw-r--r-- | debian/patches-rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/debian/patches-rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch b/debian/patches-rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch deleted file mode 100644 index 67a433009..000000000 --- a/debian/patches-rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch +++ /dev/null @@ -1,44 +0,0 @@ -From: Sebastian Andrzej Siewior <bigeasy@linutronix.de> -Date: Tue, 3 Jul 2018 18:19:48 +0200 -Subject: [PATCH] cgroup: use irqsave in cgroup_rstat_flush_locked() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.2/older/patches-5.2.17-rt9.tar.xz - -All callers of cgroup_rstat_flush_locked() acquire cgroup_rstat_lock -either with spin_lock_irq() or spin_lock_irqsave(). -cgroup_rstat_flush_locked() itself acquires cgroup_rstat_cpu_lock which -is a raw_spin_lock. This lock is also acquired in cgroup_rstat_updated() -in IRQ context and therefore requires _irqsave() locking suffix in -cgroup_rstat_flush_locked(). -Since there is no difference between spin_lock_t and raw_spin_lock_t -on !RT lockdep does not complain here. On RT lockdep complains because -the interrupts were not disabled here and a deadlock is possible. - -Acquire the raw_spin_lock_t with disabled interrupts. - -Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> ---- - kernel/cgroup/rstat.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - ---- a/kernel/cgroup/rstat.c -+++ b/kernel/cgroup/rstat.c -@@ -160,8 +160,9 @@ static void cgroup_rstat_flush_locked(st - raw_spinlock_t *cpu_lock = per_cpu_ptr(&cgroup_rstat_cpu_lock, - cpu); - struct cgroup *pos = NULL; -+ unsigned long flags; - -- raw_spin_lock(cpu_lock); -+ raw_spin_lock_irqsave(cpu_lock, flags); - while ((pos = cgroup_rstat_cpu_pop_updated(pos, cgrp, cpu))) { - struct cgroup_subsys_state *css; - -@@ -173,7 +174,7 @@ static void cgroup_rstat_flush_locked(st - css->ss->css_rstat_flush(css, cpu); - rcu_read_unlock(); - } -- raw_spin_unlock(cpu_lock); -+ raw_spin_unlock_irqrestore(cpu_lock, flags); - - /* if @may_sleep, play nice and yield if necessary */ - if (may_sleep && (need_resched() || |