Re: [PATCH] eCryptfs: Fix lockdep-reported AB-BA mutex issue
From: Roland Dreier
Date: Sat Jul 04 2009 - 18:04:41 EST
> 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
--
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/