[Sheepdog] race window accessing current_vnode_info?

Liu Yuan namei.unix at gmail.com
Thu May 3 08:42:39 CEST 2012


On 05/03/2012 02:39 PM, tao.peng at emc.com wrote:

> I guess something like
> old = current;
> current = new;
> __sync_synchronize();
> put_vnode_info(old);
> 
> should be sufficient to fix it?


It seems that we are not talking about the same problem.

get/put_vnode_info() are executed in main thread, I guess there isn't
race as you describe.

Thanks,
Yuan



More information about the sheepdog mailing list