]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit229d35a08a7cb324e27062baae93c6469897282c
tree536c3d52b7ff1044d0a00ca86fd436c846d486ab
parentcfee2990cec143d77dcc85f5db8df7d95127865f
Btrfs: fix race in tree mod log addition

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>
fs/btrfs/ctree.c