Re: [PATCH] arp_queue: serializing unlink + kfree_skb

From: David S. Miller
Date: Thu Feb 10 2005 - 22:49:30 EST


On Thu, 10 Feb 2005 15:56:47 +1100
Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote:

> > ? If yes, is this a good idea ?
>
> Dave mentioned that on sparc64, atomic_inc_and_test is much more
> expensive than the second variant.

Actually, besides the memory barriers themselves, all variants
are equally expensive.

On old i386 chips, the test variants are indeed more expensive.
Linus told me this and there is a note about this in the
atomic_ops.txt file if you look at the current copy :-)

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