Re: [PATCH-tip 1/3] locking/rwsem: Check wait_list without lock if spinner present

2017-02-27 Thread Waiman Long
On 02/26/2017 01:49 PM, Davidlohr Bueso wrote: > On Wed, 22 Feb 2017, Waiman Long wrote: > >> We can safely check the wait_list to see if waiters are present without >> lock when there are spinners to fall back on in case we miss a waiter. >> The advantage is that we can save a pair of

Re: [PATCH-tip 1/3] locking/rwsem: Check wait_list without lock if spinner present

2017-02-27 Thread Waiman Long
On 02/26/2017 01:49 PM, Davidlohr Bueso wrote: > On Wed, 22 Feb 2017, Waiman Long wrote: > >> We can safely check the wait_list to see if waiters are present without >> lock when there are spinners to fall back on in case we miss a waiter. >> The advantage is that we can save a pair of

Re: [PATCH-tip 1/3] locking/rwsem: Check wait_list without lock if spinner present

2017-02-26 Thread Davidlohr Bueso
On Wed, 22 Feb 2017, Waiman Long wrote: We can safely check the wait_list to see if waiters are present without lock when there are spinners to fall back on in case we miss a waiter. The advantage is that we can save a pair of spin_lock/unlock calls when the wait_list is empty. This translates

Re: [PATCH-tip 1/3] locking/rwsem: Check wait_list without lock if spinner present

2017-02-26 Thread Davidlohr Bueso
On Wed, 22 Feb 2017, Waiman Long wrote: We can safely check the wait_list to see if waiters are present without lock when there are spinners to fall back on in case we miss a waiter. The advantage is that we can save a pair of spin_lock/unlock calls when the wait_list is empty. This translates

[PATCH-tip 1/3] locking/rwsem: Check wait_list without lock if spinner present

2017-02-22 Thread Waiman Long
We can safely check the wait_list to see if waiters are present without lock when there are spinners to fall back on in case we miss a waiter. The advantage is that we can save a pair of spin_lock/unlock calls when the wait_list is empty. This translates to a reduction in latency and hence

[PATCH-tip 1/3] locking/rwsem: Check wait_list without lock if spinner present

2017-02-22 Thread Waiman Long
We can safely check the wait_list to see if waiters are present without lock when there are spinners to fall back on in case we miss a waiter. The advantage is that we can save a pair of spin_lock/unlock calls when the wait_list is empty. This translates to a reduction in latency and hence