Messages in this thread | | | Date | Sat, 1 Dec 2012 21:40:00 +0000 | From | Al Viro <> | Subject | Re: Regression with initramfs and nfsroot (appears to be in the dcache) |
| |
On Fri, Nov 30, 2012 at 01:58:18PM +0000, Myklebust, Trond wrote:
> The reason for the choice of d_drop over d_invalidate() is the d_count > checks. It really doesn't matter whether or not the client thinks it has > users for a directory if the server is telling you that it is ESTALE. So > we force a d_drop to prevent further lookups from finding it. > > IOW: It is there in order to fix the case where the user does > 'rmdir("foo"); mkdir("foo")' on the server.
You do realize that your have_submounts() check in there is inherently racy, right?
| |