]> 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)
commit6892af357e8377ce9f62a1b80c7d88302a66cdc8
tree6bab8a86eeb652e18e6d3207ea4d8e26727e3f4b
parent1d4b0c8a7513b76c9dca9a80e1c26e44efe46c22
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