]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: use is_idle_task() instead of idle_cpu() to decide when to halt in async_pf
authorGleb Natapov <gleb@redhat.com>
Wed, 28 Nov 2012 13:19:08 +0000 (15:19 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 28 Nov 2012 23:30:13 +0000 (21:30 -0200)
commit39e55a09cd3bb734fc6fc2c52a8ff743cb64ff91
tree9092a37fc3c6b934705ad52380e5eadd35795a4e
parent65a72064a49c43da35a71042e162bdbcef62a861
KVM: use is_idle_task() instead of idle_cpu() to decide when to halt in async_pf

As Frederic pointed idle_cpu() may return false even if async fault
happened in the idle task if wake up is pending. In this case the code
will try to put idle task to sleep. Fix this by using is_idle_task() to
check for idle task.

Reported-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kernel/kvm.c