Re: [PATCH v2 04/13] rwsem: simplify rwsem_down_read_failed

2013-03-28 Thread Rik van Riel
On 03/15/2013 06:54 AM, Michel Lespinasse wrote: When trying to acquire a read lock, the RWSEM_ACTIVE_READ_BIAS adjustment doesn't cause other readers to block, so we never have to worry about waking them back after canceling this adjustment in rwsem_down_read_failed(). We also never want to

Re: [PATCH v2 04/13] rwsem: simplify rwsem_down_read_failed

2013-03-28 Thread Rik van Riel
On 03/15/2013 06:54 AM, Michel Lespinasse wrote: When trying to acquire a read lock, the RWSEM_ACTIVE_READ_BIAS adjustment doesn't cause other readers to block, so we never have to worry about waking them back after canceling this adjustment in rwsem_down_read_failed(). We also never want to

[PATCH v2 04/13] rwsem: simplify rwsem_down_read_failed

2013-03-15 Thread Michel Lespinasse
When trying to acquire a read lock, the RWSEM_ACTIVE_READ_BIAS adjustment doesn't cause other readers to block, so we never have to worry about waking them back after canceling this adjustment in rwsem_down_read_failed(). We also never want to steal the lock in rwsem_down_read_failed(), so we

[PATCH v2 04/13] rwsem: simplify rwsem_down_read_failed

2013-03-15 Thread Michel Lespinasse
When trying to acquire a read lock, the RWSEM_ACTIVE_READ_BIAS adjustment doesn't cause other readers to block, so we never have to worry about waking them back after canceling this adjustment in rwsem_down_read_failed(). We also never want to steal the lock in rwsem_down_read_failed(), so we