Message ID | 0078d43bf3e62b36f0890731c2f6fd277a93927b.1582814004.git.zanussi@kernel.org |
---|---|
State | New |
Headers | show |
Series | Linux v4.14.170-rt75-rc2 | expand |
diff --git a/kernel/cpu.c b/kernel/cpu.c index 05b93cfa6fd9..9be794896d87 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -314,7 +314,9 @@ void pin_current_cpu(void) preempt_lazy_enable(); preempt_enable(); + sleeping_lock_inc(); __read_rt_lock(cpuhp_pin); + sleeping_lock_dec(); preempt_disable(); preempt_lazy_disable(); diff --git a/kernel/sched/core.c b/kernel/sched/core.c index fde47216af94..fcff75934bdc 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -7045,7 +7045,10 @@ void migrate_enable(void) unpin_current_cpu(); preempt_lazy_enable(); preempt_enable(); + + sleeping_lock_inc(); stop_one_cpu(task_cpu(p), migration_cpu_stop, &arg); + sleeping_lock_dec(); tlb_migrate_finish(p->mm); return;