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

2017-07-18 Thread Peter Zijlstra
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 kerne

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

2017-07-14 Thread Prateek Sood
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. On CPU1 task T2 acquired osq_lock and started spinning on owner of mutex with preemption disabled. CPU1 r