Re: [RFC PATCH] Fix abnormal rcu dynticks_nesting values related toasync page fault

From: Frederic Weisbecker
Date: Tue Nov 27 2012 - 10:56:21 EST


2012/11/27 Gleb Natapov <gleb@xxxxxxxxxx>:
> For KVM_PV_REASON_PAGE_NOT_PRESENT it behaves like an exception.

Ok.
There seem to be a bug in kvm_async_pf_task_wait(). Using
idle_cpu(cpu) to find out if the current task is the idle task may not
work if there is pending wake up. Me may schedule another task but
when that other task sleeps later we can't schedule back to idle until
the fault is completed.

The right way is to use is_idle_task(current)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/