From: "J. Bruce Fields" <bfields@fieldses.org>
To: Mark Fasheh <mfasheh@suse.com>,
ocfs2-devel@oss.oracle.com, linux-fsdevel@vger.kernel.org
Subject: Re: [Ocfs2-devel] [RFC PATCH] ocfs2: don't depend on DCACHE_DISCONNECTED
Date: Thu, 16 Aug 2012 15:42:03 -0400 [thread overview]
Message-ID: <20120816194203.GC4385@fieldses.org> (raw)
In-Reply-To: <20120815102241.GP31083@dhcp-172-17-9-228.mtv.corp.google.com>
On Wed, Aug 15, 2012 at 03:22:42AM -0700, Joel Becker wrote:
> So, I think you are right that we can't be relying on it *that*
> much, because splicing the alias doesn't clear it right away. In other
> words, we rely on other mechanisms to ensure we have our lock attached
> when the dentry is reachable, but if we're dropping an unreachable
> dentry, we might not have the lock attached, and we need to detect that.
> So your original point, that the code "can't be right", is
> really that the code is overly permissive. If we have a reachable tree
> with DISCONNECTED not yet cleared, that lock should be attached, but
> this check won't catch it. That's fine. We rely on other code.
> Conversely, we *know* we can get here with DISCONNECTED set from nfs or
> d_kill, and we don't want to print errors for a sane state.
OK, so we're depending on the DCACHE_DISCONNECTED check *only* to decide
whether to warn, and you don't mind missing some warnings as long as you
never warn when you shouldn't. Makes sense, thanks!
--b.
next prev parent reply other threads:[~2012-08-16 19:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-31 22:33 [RFC PATCH] ocfs2: don't depend on DCACHE_DISCONNECTED J. Bruce Fields
2012-08-02 7:57 ` Joel Becker
2012-08-02 12:59 ` J. Bruce Fields
2012-08-15 10:22 ` [Ocfs2-devel] " Joel Becker
2012-08-16 19:42 ` J. Bruce Fields [this message]
2012-08-16 19:54 ` [PATCH] ocfs2: comment missing-cluster-lock warning J. Bruce Fields
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=20120816194203.GC4385@fieldses.org \
--to=bfields@fieldses.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mfasheh@suse.com \
--cc=ocfs2-devel@oss.oracle.com \
/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;
as well as URLs for NNTP newsgroup(s).