[Sheepdog] race window accessing current_vnode_info?

Liu Yuan namei.unix at gmail.com
Thu May 3 08:23:21 CEST 2012


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

> Hi list,
> 
> I was reading sheepdog code and noticed that in update_vnode_info(),
> if one thread calls get_vnode_info() between
> put_vnode_info(current_vnode_info) and current_vnode_info =
> vnode_info, it then will get an invalid pointer. So it looks like a
> race window there?
> 


Yes, exactly, we already met this problem in join phrase and trying to
fix it.

Thanks,
Yuan



More information about the sheepdog mailing list