summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0301-sched-migrate-disable-Protect-cpus_ptr-with-lock.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 03:21:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 03:21:37 +0000
commit06343b27411344fc542f4f3a643f8441aa35252d (patch)
tree66aa45187c93c350bbdf7e6ae4467a70bf3a8f4c /debian/patches-rt/0301-sched-migrate-disable-Protect-cpus_ptr-with-lock.patch
parentMerging upstream version 4.19.260. (diff)
downloadlinux-06343b27411344fc542f4f3a643f8441aa35252d.tar.xz
linux-06343b27411344fc542f4f3a643f8441aa35252d.zip
Adding debian version 4.19.260-1.debian/4.19.260-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0301-sched-migrate-disable-Protect-cpus_ptr-with-lock.patch')
-rw-r--r--debian/patches-rt/0301-sched-migrate-disable-Protect-cpus_ptr-with-lock.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/debian/patches-rt/0301-sched-migrate-disable-Protect-cpus_ptr-with-lock.patch b/debian/patches-rt/0301-sched-migrate-disable-Protect-cpus_ptr-with-lock.patch
deleted file mode 100644
index 1f1822daf..000000000
--- a/debian/patches-rt/0301-sched-migrate-disable-Protect-cpus_ptr-with-lock.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From c4c6908e112c8368299d23485a921dcc83876ec2 Mon Sep 17 00:00:00 2001
-From: Scott Wood <swood@redhat.com>
-Date: Sat, 27 Jul 2019 00:56:34 -0500
-Subject: [PATCH 301/347] sched: migrate disable: Protect cpus_ptr with lock
-Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.246-rt110.tar.xz
-
-[ Upstream commit 27ee52a891ed2c7e2e2c8332ccae0de7c2674b09 ]
-
-Various places assume that cpus_ptr is protected by rq/pi locks,
-so don't change it before grabbing those locks.
-
-Signed-off-by: Scott Wood <swood@redhat.com>
-Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
-Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
----
- kernel/sched/core.c | 6 ++----
- 1 file changed, 2 insertions(+), 4 deletions(-)
-
-diff --git a/kernel/sched/core.c b/kernel/sched/core.c
-index e64d2b2b3a69..6f91ee2b7e91 100644
---- a/kernel/sched/core.c
-+++ b/kernel/sched/core.c
-@@ -7244,9 +7244,8 @@ migrate_disable_update_cpus_allowed(struct task_struct *p)
- struct rq *rq;
- struct rq_flags rf;
-
-- p->cpus_ptr = cpumask_of(smp_processor_id());
--
- rq = task_rq_lock(p, &rf);
-+ p->cpus_ptr = cpumask_of(smp_processor_id());
- update_nr_migratory(p, -1);
- p->nr_cpus_allowed = 1;
- task_rq_unlock(rq, p, &rf);
-@@ -7258,9 +7257,8 @@ migrate_enable_update_cpus_allowed(struct task_struct *p)
- struct rq *rq;
- struct rq_flags rf;
-
-- p->cpus_ptr = &p->cpus_mask;
--
- rq = task_rq_lock(p, &rf);
-+ p->cpus_ptr = &p->cpus_mask;
- p->nr_cpus_allowed = cpumask_weight(&p->cpus_mask);
- update_nr_migratory(p, 1);
- task_rq_unlock(rq, p, &rf);
---
-2.36.1
-