Btrfs: fix race in tree mod log addition
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Mon, 11 Jun 2012 08:52:38 +0000 (10:52 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 14 Jun 2012 16:52:39 +0000 (18:52 +0200)
When adding to the tree modification log, we grab two locks at different
stages. We must not drop the outer lock until we're done with section
protected by the inner lock. This moves the unlock call for the outer lock
to the appropriate position.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>

No differences found