summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/sched-migrate-disable-Protect-cpus_ptr-with-lock.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches-rt/sched-migrate-disable-Protect-cpus_ptr-with-lock.patch')
-rw-r--r--debian/patches-rt/sched-migrate-disable-Protect-cpus_ptr-with-lock.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/debian/patches-rt/sched-migrate-disable-Protect-cpus_ptr-with-lock.patch b/debian/patches-rt/sched-migrate-disable-Protect-cpus_ptr-with-lock.patch
deleted file mode 100644
index d36822234..000000000
--- a/debian/patches-rt/sched-migrate-disable-Protect-cpus_ptr-with-lock.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From: Scott Wood <swood@redhat.com>
-Date: Sat, 27 Jul 2019 00:56:34 -0500
-Subject: [PATCH] sched: migrate disable: Protect cpus_ptr with lock
-Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.2/older/patches-5.2.17-rt9.tar.xz
-
-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>
----
- kernel/sched/core.c | 6 ++----
- 1 file changed, 2 insertions(+), 4 deletions(-)
-
---- a/kernel/sched/core.c
-+++ b/kernel/sched/core.c
-@@ -7171,9 +7171,8 @@ migrate_disable_update_cpus_allowed(stru
- 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);
-@@ -7185,9 +7184,8 @@ migrate_enable_update_cpus_allowed(struc
- 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);