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

From: Rik van Riel
Date: Thu Mar 28 2013 - 17:02:50 EST


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 <walken@xxxxxxxxxx>

Acked-by: Rik van Riel <riel@xxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/