Re: [PATCH] osq_lock: avoid live-lock issue for RT task

From: Peter Zijlstra
Date: Tue Jul 18 2017 - 07:36:26 EST


On Fri, Jul 14, 2017 at 07:19:09PM +0530, Prateek Sood wrote:
> Live Lock due to task spinning while unqueue of CPU osq_node
> from optimistic_spin_queue. Task T1 had decremented mutex count to
> acquire the lock on CPU0. Before setting owner it got preempted.

You've been working on ancient kernels... That can no longer happen.

Please see if this is still an issue after:

3ca0ff571b09 ("locking/mutex: Rework mutex::owner")

If so, please write an up-to-date Changelog and patch (it doesn't
apply because of commit

5aff60a191e5 ("locking/osq: Break out of spin-wait busy waiting loop for a preempted vCPU in osq_lock()")

)