Re: [zfs-discuss] atomic_set and what assumptions are proper

2008-11-10 Thread Joe Blount
[EMAIL PROTECTED] wrote: I notice the sys/atomic.h atomic_xxx interfaces are limited to things that do read/modify/write (inc/dec/swap/etc). There is no atomic_set to do a simple assignment. My question is: what protocol is used to update a specific variable to a specific

Re: [zfs-discuss] atomic_set and what assumptions are proper

2008-11-10 Thread Casper . Dik
>I notice the sys/atomic.h atomic_xxx interfaces are limited to things >that do read/modify/write (inc/dec/swap/etc). There is no atomic_set to >do a simple assignment. My question is: what protocol is used to update a specific variable to a specific value WHILE AT THE SAME TIME another part c

[zfs-discuss] atomic_set and what assumptions are proper

2008-11-10 Thread Joe Blount
I notice the sys/atomic.h atomic_xxx interfaces are limited to things that do read/modify/write (inc/dec/swap/etc). There is no atomic_set to do a simple assignment. In a couple headers defining wrappers around the atomic_xxx interfaces, some define an atomic_set that does a simple assignment,