]> 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)
commit26f068201c9e0c01d48bdcf22b4b598fcbbbd892
tree536c3d52b7ff1044d0a00ca86fd436c846d486ab
parenteb421503ccedb593d68af53414dea2520ef8a47f
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