diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-01-12 10:23:59 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-01-12 10:23:59 -0800 |
commit | 67549d46d42eed58731028bebe304bc8cbd7af01 (patch) | |
tree | a0f5f7664ae96d3f0ce693f46987a820539dcae5 /kernel | |
parent | 02776b9b5399183f273fa898fef64b1e977a5f85 (diff) | |
parent | 541676078b52f365f53d46ee5517d305cd1b6350 (diff) | |
download | op-kernel-dev-67549d46d42eed58731028bebe304bc8cbd7af01.zip op-kernel-dev-67549d46d42eed58731028bebe304bc8cbd7af01.tar.gz |
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar:
"A Kconfig fix, a build fix and a membarrier bug fix"
* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
membarrier: Disable preemption when calling smp_call_function_many()
sched/isolation: Make CONFIG_CPU_ISOLATION=y depend on SMP or COMPILE_TEST
ia64, sched/cputime: Fix build error if CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=y
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/membarrier.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched/membarrier.c b/kernel/sched/membarrier.c index dd79087..9bcbacb 100644 --- a/kernel/sched/membarrier.c +++ b/kernel/sched/membarrier.c @@ -89,7 +89,9 @@ static int membarrier_private_expedited(void) rcu_read_unlock(); } if (!fallback) { + preempt_disable(); smp_call_function_many(tmpmask, ipi_mb, NULL, 1); + preempt_enable(); free_cpumask_var(tmpmask); } cpus_read_unlock(); |