From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Linux FSdevel <linux-fsdevel@vger.kernel.org>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 2.5.75 Support dentry revalidation under open(".")
Date: Fri, 11 Jul 2003 19:17:15 +0200 [thread overview]
Message-ID: <16142.61723.615768.520443@charged.uio.no> (raw)
In-Reply-To: <Pine.LNX.4.44.0307110955180.3452-100000@home.osdl.org>
>>>>> " " == Linus Torvalds <torvalds@osdl.org> writes:
> I'm not sure. It may not impact other filesystems, but it
> impacts the internal consistency of the dentry tree, and can
> cause some really nasty aliasing issues.
We can remove the d_invalidate(). See my response to your second
paragraph...
However as a more general argument: it is hard to avoid aliasing if
people are playing games on the server. If e.g. somebody does
mv foo bar
mkdir foo
on the server side while one of our processes was in the original
"foo" directory, it would IMHO be wrong not to allow us to d_drop()
the original dentry in order to allow other processes to access the
new "foo".
> If d_invalidate() returns a failure, that means that the dentry
> is still hashed (because it was busy), and returning NULL and
> leaving the dentry there sounds very wrong, since it can never
> be fixed with a new lookup.
The d_invalidate() is not really crucial for the purposes of the
open(".")-type call, and could indeed be taken out. The main point as
far as NFS is concerned is the d_revalidate() call.
I will resubmit the patch with the d_invalidate taken out...
Cheers,
Trond
prev parent reply other threads:[~2003-07-11 17:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-11 15:14 Trond Myklebust
2003-07-11 17:03 ` Linus Torvalds
2003-07-11 17:17 ` Trond Myklebust [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16142.61723.615768.520443@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®