]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Btrfs: set lockdep class before locking new extent buffer
authorJosef Bacik <jbacik@fusionio.com>
Fri, 5 Jul 2013 21:05:38 +0000 (17:05 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 11:57:20 +0000 (07:57 -0400)
commitb2aaaa3b8c2153ef17f0e22287acbf8ee31a7c82
treea747a6023641d9acfc532374a09d41c2c369aeb7
parent59516f6017c589e7316418fda6128ba8f829a77f
Btrfs: set lockdep class before locking new extent buffer

We've been seeing spurious complaints out of lockdep because the lock class name
changes.  This is happening because when we drop a snapshot we will lock a block
before we've read it in, which sets the lockdep class to whatever the default
is.  Then once we read the thing in we reset the lockdep class to what it is
supposed to be, which blows lockdeps' mind.  This patch should fix the problem,
it appears to be the only place where we do this sort of thing.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent-tree.c