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

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


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 <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/