From: Tejun Heo <tj@kernel.org>
To: chris.mason@oracle.com, peterz@infradead.org, mingo@redhat.com,
linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [RFC PATCHSET] btrfs: Simplify extent_buffer locking
Date: Thu, 24 Mar 2011 18:43:05 +0100 [thread overview]
Message-ID: <1300988588-13986-1-git-send-email-tj@kernel.org> (raw)
Hello,
This is split patchset of the RFC patches[1] to simplify btrfs
locking and contains the following three patches.
0001-btrfs-Cleanup-extent_buffer-lockdep-code.patch
0002-btrfs-Use-separate-lockdep-class-keys-for-different-.patch
0003-btrfs-Simplify-extent_buffer-locking.patch
For more info, please read the patch description on 0003 and the
following two threads.
http://thread.gmane.org/gmane.comp.file-systems.btrfs/9658
http://thread.gmane.org/gmane.linux.kernel/1116910
0001 and 0002 improve lockdep key assigning such that extent_buffer
locks get different keys depending on the type (objectid) of the
btrfs_root they belong to. I think this should provide enough lockdep
annotation resolution to avoid spurious triggering but after applying
this patchset, btrfs triggers several different locking dependency
warnings.
I've followed a couple of them and, to my untrained eyes, they seem to
indicate genuine locking order problems in btrfs which were hidden
till now because the custom locking was invisible to lockdep.
Anyways, so, it seems locking fixes or at least lockdep annotation
improvements will be needed. Chris, how do you want to proceed?
Thanks.
fs/btrfs/Makefile | 2
fs/btrfs/ctree.c | 16 +--
fs/btrfs/disk-io.c | 105 ++++++++++++++--------
fs/btrfs/disk-io.h | 21 ++--
fs/btrfs/extent-tree.c | 2
fs/btrfs/extent_io.c | 3
fs/btrfs/extent_io.h | 12 --
fs/btrfs/locking.c | 233 -------------------------------------------------
fs/btrfs/locking.h | 65 +++++++++++--
fs/btrfs/volumes.c | 2
10 files changed, 154 insertions(+), 307 deletions(-)
--
tejun
[1] http://article.gmane.org/gmane.comp.file-systems.btrfs/9658
next reply other threads:[~2011-03-24 17:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-24 17:43 Tejun Heo [this message]
2011-03-24 17:43 ` [PATCH 1/3] btrfs: Cleanup extent_buffer lockdep code Tejun Heo
2011-03-24 17:43 ` [PATCH 2/3] btrfs: Use separate lockdep class keys for different roots Tejun Heo
2011-03-24 17:43 ` [PATCH 3/3] btrfs: Simplify extent_buffer locking Tejun Heo
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=1300988588-13986-1-git-send-email-tj@kernel.org \
--to=tj@kernel.org \
--cc=chris.mason@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.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;
as well as URLs for NNTP newsgroup(s).