Re: [PATCH] locking/pvqspinlock: Wait early if vcpu is preempted

2017-01-05 Thread Pan Xinhui
在 2017/1/5 16:23, Ingo Molnar 写道: * Pan Xinhui wrote: If prev node is not in runnig state or its cpu is preempted, we need wait early in pv_wait_node. After commit "sched/core: Introduce the vcpu_is_preempted(cpu) interface" kernel has knowledge of one vcpu

Re: [PATCH] locking/pvqspinlock: Wait early if vcpu is preempted

2017-01-05 Thread Pan Xinhui
在 2017/1/5 16:23, Ingo Molnar 写道: * Pan Xinhui wrote: If prev node is not in runnig state or its cpu is preempted, we need wait early in pv_wait_node. After commit "sched/core: Introduce the vcpu_is_preempted(cpu) interface" kernel has knowledge of one vcpu is running or not. So lets use

Re: [PATCH] locking/pvqspinlock: Wait early if vcpu is preempted

2017-01-05 Thread Ingo Molnar
* Pan Xinhui wrote: > If prev node is not in runnig state or its cpu is preempted, we need > wait early in pv_wait_node. After commit "sched/core: Introduce the > vcpu_is_preempted(cpu) interface" kernel has knowledge of one vcpu is > running or not. So lets use

Re: [PATCH] locking/pvqspinlock: Wait early if vcpu is preempted

2017-01-05 Thread Ingo Molnar
* Pan Xinhui wrote: > If prev node is not in runnig state or its cpu is preempted, we need > wait early in pv_wait_node. After commit "sched/core: Introduce the > vcpu_is_preempted(cpu) interface" kernel has knowledge of one vcpu is > running or not. So lets use it. That's not how we reference

[PATCH] locking/pvqspinlock: Wait early if vcpu is preempted

2016-12-06 Thread Pan Xinhui
If prev node is not in runnig state or its cpu is preempted, we need wait early in pv_wait_node. After commit "sched/core: Introduce the vcpu_is_preempted(cpu) interface" kernel has knowledge of one vcpu is running or not. So lets use it. Signed-off-by: Pan Xinhui

[PATCH] locking/pvqspinlock: Wait early if vcpu is preempted

2016-12-06 Thread Pan Xinhui
If prev node is not in runnig state or its cpu is preempted, we need wait early in pv_wait_node. After commit "sched/core: Introduce the vcpu_is_preempted(cpu) interface" kernel has knowledge of one vcpu is running or not. So lets use it. Signed-off-by: Pan Xinhui ---