All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roland Dreier <rdreier@cisco.com>
To: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Cc: kirkland@canonical.com, ecryptfs-devel@lists.launchpad.net,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] eCryptfs: Fix lockdep-reported AB-BA mutex issue
Date: Sat, 04 Jul 2009 15:04:25 -0700	[thread overview]
Message-ID: <adatz1syuja.fsf@cisco.com> (raw)
In-Reply-To: <4A4D0897.6060504@linux.vnet.ibm.com> (Tyler Hicks's message of "Thu, 02 Jul 2009 14:20:55 -0500")


 > This patch looks good.  I really appreciate you tracking down and fixing
 > this problem.  It will take me a little bit longer before I can get to
 > the other 2 patches.

Thanks, so I'll assume that this patch has been queued up and will go
upstream at some point?

I'll resend the patch for removing the locking from
ecryptfs_destroy_crypt_stat() and ecryptfs_destroy_inode() with a proper
changelog and s-o-b.  Again, that patch is (almost by definition) not
fixing a real issue, since the lock problems that lockdep is warning
about must never occur for the same reason that the patch is valid,
namely that no other context will ever try to lock an object that is in
the process of being freed.

However, as you mentioned, it definitely is worth cleaning up lockdep
false positives because lockdep disables itself as soon as it prints one
report, and so fixing up ecryptfs makes lockdep much more useful for
debugging other stuff while still being able to use ecryptfs (as I like
to do on my laptop, since I'd just as soon not hand over all my files in
case my laptop is lost somehow).

I'll resend the s_vfs_rename_mutex annotation patch via the generic vfs
tree, since the change is really not in ecryptfs code at all (although
it is triggered by having a stacked filesystem).

Thanks,
  Roland

  reply	other threads:[~2009-07-04 22:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-01 17:06 lockdep reported AB-BA problem in ecryptfs Roland Dreier
2009-07-01 22:48 ` [PATCH] eCryptfs: Fix lockdep-reported AB-BA mutex issue Roland Dreier
2009-07-02 19:20   ` Tyler Hicks
2009-07-04 22:04     ` Roland Dreier [this message]
2009-07-01 23:08 ` Another lockdep issue reported with ecryptfs Roland Dreier
2009-07-02  0:31   ` Roland Dreier
2009-07-02  0:41   ` Yet another " Roland Dreier
2009-07-02  3:58     ` Roland Dreier

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=adatz1syuja.fsf@cisco.com \
    --to=rdreier@cisco.com \
    --cc=ecryptfs-devel@lists.launchpad.net \
    --cc=kirkland@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tyhicks@linux.vnet.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.