Re: [patch] convert aio event reap to use atomic-op instead ofspin_lock

From: Andrew Morton
Date: Wed Apr 11 2007 - 01:19:25 EST


On Tue, 10 Apr 2007 16:53:53 -0700 (PDT) kenchen@xxxxxxxxxx (Ken Chen) wrote:

> + } while (head != cmpxchg(&ring->head, head, head + 1));

A hasty grep indicates that only 14 out of 23 architectures implement
cmpxchg().
-
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/