[PATCH 05/11] locking/ww_mutex: Add waiters in stamp order

2016-11-30 Thread Chris Wilson
On Mon, Nov 28, 2016 at 01:20:06PM +0100, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Add regular waiters in stamp order. Keep adding waiters that have no > context in FIFO order and take care not to starve them. > > While adding our task as a waiter, back off if we detect that there is a

[PATCH 05/11] locking/ww_mutex: Add waiters in stamp order

2016-11-28 Thread Nicolai Hähnle
From: Nicolai Hähnle Add regular waiters in stamp order. Keep adding waiters that have no context in FIFO order and take care not to starve them. While adding our task as a waiter, back off if we detect that there is a waiter with a lower stamp in front of us. Make sure to call lock_contended