Re: [PATCH v2 1/2] locking/qrwlock: Fix bug in interrupt handling code

2015-06-12 Thread Waiman Long
On 06/11/2015 10:21 AM, Will Deacon wrote: Hi Waiman, On Tue, Jun 09, 2015 at 04:19:12PM +0100, Waiman Long wrote: The qrwlock is fair in the process context, but becoming unfair when in the interrupt context to support use cases like the tasklist_lock. However, the unfair code in the interrupt

Re: [PATCH v2 1/2] locking/qrwlock: Fix bug in interrupt handling code

2015-06-11 Thread Will Deacon
Hi Waiman, On Tue, Jun 09, 2015 at 04:19:12PM +0100, Waiman Long wrote: > The qrwlock is fair in the process context, but becoming unfair when > in the interrupt context to support use cases like the tasklist_lock. > However, the unfair code in the interrupt context has problem that > may cause de

[PATCH v2 1/2] locking/qrwlock: Fix bug in interrupt handling code

2015-06-09 Thread Waiman Long
The qrwlock is fair in the process context, but becoming unfair when in the interrupt context to support use cases like the tasklist_lock. However, the unfair code in the interrupt context has problem that may cause deadlock. The fast path increments the reader count. In the interrupt context, the