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

From: Ingo Molnar
Date: Thu Jan 05 2017 - 03:26:33 EST



* Pan Xinhui <xinhui.pan@xxxxxxxxxxxxxxxxxx> 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 upstream commits. I had to search the git log the hard
way to figure out that it's commit d9345c65eb79 ...

Also, once you look at that commit you'll see how sloppy the capitalization in
your changelog is. I fixed that up for all the original commits in the hope of you
learning from those mistakes - but that was last year and the experiment failed.

Thanks,

Ingo