]> rtime.felk.cvut.cz Git - linux-imx.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)
commitdb1d607d3ca5cbb283cbb17d648cd7e8dc67cc7b
tree6bab8a86eeb652e18e6d3207ea4d8e26727e3f4b
parent6e137ed3f30574f314733d4b7a86ea6523232b14
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