[Pvfs2-developers] help with kernel dentry revalidate problem

Scott Atchley atchley at myri.com
Wed Aug 15 20:37:30 EDT 2007


On Aug 15, 2007, at 6:53 PM, Pete Wyckoff wrote:

>     if (task == 0)
> 	mkdir("foo");
>
>     MPI_Barrier();
>     sleep(3);
>
>     stat("foo");
>
>     if (task == 0)
>     	rmdir("foo");
>

Hi Pete,

Isn't there a race condition between task 0 and the others after the  
barrier? Can 0 stat the file and rmdir it before another task can stat 
() it? If so, should there be a barrier after the stat() and before  
the rmdir?

Scott


More information about the Pvfs2-developers mailing list