]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
sched/core: Idle_task_exit() shouldn't use switch_mm_irqs_off()
authorAndy Lutomirski <luto@kernel.org>
Fri, 9 Jun 2017 18:49:15 +0000 (11:49 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 13 Mar 2018 10:28:49 +0000 (11:28 +0100)
commit9f2b828402b168fcd5a4f39c624a204fe10802b4
tree43293f4ff30efa9dc56f169d5a67ca26d70e77ce
parent265930762f2bd8c462b2bcbffa020213c15965a2
sched/core: Idle_task_exit() shouldn't use switch_mm_irqs_off()

BugLink: http://bugs.launchpad.net/bugs/1745054
commit 252d2a4117bc181b287eeddf848863788da733ae upstream.

idle_task_exit() can be called with IRQs on x86 on and therefore
should use switch_mm(), not switch_mm_irqs_off().

This doesn't seem to cause any problems right now, but it will
confuse my upcoming TLB flush changes.  Nonetheless, I think it
should be backported because it's trivial.  There won't be any
meaningful performance impact because idle_task_exit() is only
used when offlining a CPU.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Fixes: f98db6013c55 ("sched/core: Add switch_mm_irqs_off() and use it in the scheduler")
Link: http://lkml.kernel.org/r/ca3d1a9fa93a0b49f5a8ff729eda3640fb6abdf9.1497034141.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
kernel/sched/core.c