Re: [PATCH v2 09/13] rwsem: skip initial trylock in rwsem_down_write_failed

2013-03-28 Thread Rik van Riel
On 03/15/2013 06:54 AM, Michel Lespinasse wrote: We can skip the initial trylock in rwsem_down_write_failed() if there are known active lockers already, thus saving one likely-to-fail cmpxchg. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel -- To unsubscribe from this list: send

Re: [PATCH v2 09/13] rwsem: skip initial trylock in rwsem_down_write_failed

2013-03-28 Thread Rik van Riel
On 03/15/2013 06:54 AM, Michel Lespinasse wrote: We can skip the initial trylock in rwsem_down_write_failed() if there are known active lockers already, thus saving one likely-to-fail cmpxchg. Signed-off-by: Michel Lespinasse wal...@google.com Acked-by: Rik van Riel r...@redhat.com -- To

[PATCH v2 09/13] rwsem: skip initial trylock in rwsem_down_write_failed

2013-03-15 Thread Michel Lespinasse
We can skip the initial trylock in rwsem_down_write_failed() if there are known active lockers already, thus saving one likely-to-fail cmpxchg. Signed-off-by: Michel Lespinasse --- lib/rwsem.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/rwsem.c

[PATCH v2 09/13] rwsem: skip initial trylock in rwsem_down_write_failed

2013-03-15 Thread Michel Lespinasse
We can skip the initial trylock in rwsem_down_write_failed() if there are known active lockers already, thus saving one likely-to-fail cmpxchg. Signed-off-by: Michel Lespinasse wal...@google.com --- lib/rwsem.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git