As I was looking over some stuff, I noticed that a number of instances
where an atomic_ops function was used as a reference counter in a
struct, but the field was not declared volatile.
ex:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/inet/ipsec_impl.h#277
ipa_refs is not declared volatile, yet it's used as an argument
atomic_add_32 and atomic_32_nv.

Am I missing something, or should that be a bug?
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to