Re: Difference between atomic operations and memory barriers

From: Noah Watkins
Date: Mon Oct 26 2009 - 15:42:29 EST


Noah Watkins wrote:
So we can safely assume that pointer assignment will be done in an
atomic manner?

See the the comment above rcu_assign_pointer in
include/linux/rcupdate.h

This comment only talks about ordering, not about atomicity.
Ahh, yeh that's true.


Again, AFAIR the ISO C spec should explain what is going to be
guaranteed atomic and what might not be atomic.
This seems likely. I wonder if there are any strange architectures
out there that have some insane implementation.



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