btrfs: fix locking issues in find_parent_nodes()
authorLi Zefan <lizf@cn.fujitsu.com>
Sat, 3 Mar 2012 12:41:15 +0000 (07:41 -0500)
committerChris Mason <chris.mason@oracle.com>
Sat, 3 Mar 2012 12:41:15 +0000 (07:41 -0500)
commitd3b010640e5c59b98d3b11229ba4cc2838dc7cbf
treeadaa412e6603430b04e104dbafb4ed3e3d32a455
parente77266e4c4be6f9dc91bf688bce015a8babd5fe0
btrfs: fix locking issues in find_parent_nodes()

- We might unlock head->mutex while it was not locked
- We might leave the function without unlocking delayed_refs->lock

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/backref.c