Re: [PATCH v2 08/13] rwsem: avoid taking wait_lock in rwsem_down_write_failed

2013-03-28 Thread Rik van Riel
On 03/15/2013 06:54 AM, Michel Lespinasse wrote: In rwsem_down_write_failed(), if there are active locks after we wake up (i.e. the lock got stolen from us), skip taking the wait_lock and go back to sleep immediately. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel -- To

Re: [PATCH v2 08/13] rwsem: avoid taking wait_lock in rwsem_down_write_failed

2013-03-28 Thread Rik van Riel
On 03/15/2013 06:54 AM, Michel Lespinasse wrote: In rwsem_down_write_failed(), if there are active locks after we wake up (i.e. the lock got stolen from us), skip taking the wait_lock and go back to sleep immediately. Signed-off-by: Michel Lespinasse wal...@google.com Acked-by: Rik van Riel

[PATCH v2 08/13] rwsem: avoid taking wait_lock in rwsem_down_write_failed

2013-03-15 Thread Michel Lespinasse
In rwsem_down_write_failed(), if there are active locks after we wake up (i.e. the lock got stolen from us), skip taking the wait_lock and go back to sleep immediately. Signed-off-by: Michel Lespinasse --- lib/rwsem.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

[PATCH v2 08/13] rwsem: avoid taking wait_lock in rwsem_down_write_failed

2013-03-15 Thread Michel Lespinasse
In rwsem_down_write_failed(), if there are active locks after we wake up (i.e. the lock got stolen from us), skip taking the wait_lock and go back to sleep immediately. Signed-off-by: Michel Lespinasse wal...@google.com --- lib/rwsem.c | 10 -- 1 file changed, 8 insertions(+), 2