Re: [PATCH v6 02/11] locking/osq: Drop the overload of osq_lock()
From: Pan Xinhui <hidden>
Date: 2016-10-30 14:39:46
Also in:
kvm, linux-s390, virtualization
From: Pan Xinhui <hidden>
Date: 2016-10-30 14:39:46
Also in:
kvm, linux-s390, virtualization
在 2016/10/30 00:52, Davidlohr Bueso 写道:
On Fri, 28 Oct 2016, Pan Xinhui wrote:quoted
/* * If we need to reschedule bail... so we can block. + * Use vcpu_is_preempted to detech lock holder preemption issue^^ detect
ok. thanks for poingting it out.
quoted
+ * and break.Could you please remove the rest of this comment? Its just noise to point out that vcpu_is_preempted is a macro defined by arch/false. This is standard protocol in the kernel.
fair enough.
Same goes for all locks you change with this. Thanks, Davidlohrquoted
* vcpu_is_preempted is a macro defined by false if + * arch does not support vcpu preempted check, */ - if (need_resched()) + if (need_resched() || vcpu_is_preempted(node_cpu(node->prev))) goto unqueue; cpu_relax_lowlatency(); -- 2.4.11