[sheepdog] [PATCH 03/11] sheep/recovery: guard next_rw with RCU

Liu Yuan namei.unix at gmail.com
Wed Apr 17 05:26:06 CEST 2013


On 04/16/2013 03:24 PM, MORITA Kazutaka wrote:
> +/* uatomic_xchg for pointers */

Need document what this function returns. And xchg isn't programmer
friendly. I'd suggest following comment:

"Swaps the old value stored at location p with new value given by val.
Returns old value."

Thanks,
Yuan



More information about the sheepdog mailing list