Re: test_and_set_bit implementation

From: Christoph Lameter <clameter_at_sgi.com>
Date: 2006-12-13 04:22:44
On Tue, 12 Dec 2006, Matthew Wilcox wrote:

> The original code and your rewrite both access memory twice in the loop.
> Why don't we do it with one memory reference per loop instead?

Because the the cmpxchg usually succeeds. It is rare that we have to redo 
the loop.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Dec 13 04:25:10 2006

This archive was generated by hypermail 2.1.8 : 2006-12-13 04:25:25 EST