Skip to content
Commit 75437bb3 authored by Pan Xinhui's avatar Pan Xinhui Committed by Ingo Molnar
Browse files

locking/pvqspinlock: Don't wait if vCPU is preempted



If prev node is not in running state or its vCPU is preempted, we can give
up our vCPU slices in pv_wait_node() ASAP.

Signed-off-by: default avatarPan Xinhui <xinhui.pan@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: longman@redhat.com
Link: http://lkml.kernel.org/r/1484035006-6787-1-git-send-email-xinhui.pan@linux.vnet.ibm.com


[ Fixed typos in the changelog, removed ugly linebreak from the code. ]
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 607904c3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment