]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: only unlock block in verify_parent_transid if we locked it
authorJosef Bacik <jbacik@fb.com>
Wed, 25 Jun 2014 20:45:41 +0000 (13:45 -0700)
committerChris Mason <clm@fb.com>
Sat, 28 Jun 2014 20:48:47 +0000 (13:48 -0700)
commit4d0c1a324c6c21045f4b9e02946a646883e16554
treeeee3ce7df92823bedb0f0d922221e380304d7e2d
parent29cfff57cbdf406c6432a3994cd80eb7f3cb122a
btrfs: only unlock block in verify_parent_transid if we locked it

This is a regression from my patch 9bb7b06b9590894c2e9436f3e52007ad8806d119, we
need to only unlock the block if we were the one who locked it.  Otherwise this
will trip BUG_ON()'s in locking.c  Thanks,

cc: stable@vger.kernel.org
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/disk-io.c