]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: hold the ordered operations mutex when waiting on ordered extents
authorJosef Bacik <jbacik@fusionio.com>
Tue, 26 Mar 2013 19:29:11 +0000 (15:29 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Thu, 28 Mar 2013 13:51:28 +0000 (09:51 -0400)
commitdd4828371b26fb1c97d0427165c1228553605ebf
tree6bab8a86eeb652e18e6d3207ea4d8e26727e3f4b
parentde8808702ddc1e4c4092292d12ef41b9db0a39b8
Btrfs: hold the ordered operations mutex when waiting on ordered extents

We need to hold the ordered_operations mutex while waiting on ordered extents
since we splice and run the ordered extents list.  We need to make sure anybody
else who wants to wait on ordered extents does actually wait for them to be
completed.  This will keep us from bailing out of flushing in case somebody is
already waiting on ordered extents to complete.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ordered-data.c