Re: [PATCH v2 07/13] rwsem: use cmpxchg for trying to steal writelock

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


On 03/15/2013 06:54 AM, Michel Lespinasse wrote:
Using rwsem_atomic_update to try stealing the write lock forced us to
undo the adjustment in the failure path. We can have simpler and faster
code by using cmpxchg instead.

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/