Re: [RFC] atomic create+open

From: Trond Myklebust
Date: Thu Oct 06 2005 - 12:26:20 EST


to den 06.10.2005 Klokka 19:06 (+0200) skreiv Miklos Szeredi:
> > The reason why we do it as a lookup intent is because this has to be
> > atomic lookup+create+open in order to be at all useful to NFS.
>
> Oh, and btw there's a problem with atomic lookup+create+open: mounts.
> Do you want to follow mounts inside ->lookup(). Ugly.

No. Why do you think you would need to? The VFS is supposed to protect
you against races with mount and other local objects (dcache races,
inode races,...). The problem is remote objects.

Cheers,
Trond


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/