aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2012-07-25 16:03:32 -0400
committerChris Mason <chris.mason@fusionio.com>2012-07-25 16:15:08 -0400
commitcd1cfc49153ba2bef247e500d8bd4d135193ece9 (patch)
tree34446eea9087a689b7864506197292bf9689fd28 /fs
parente9fbcb42201c862fd6ab45c48ead4f47bb2dea9d (diff)
Btrfs: add a barrier before a waitqueue_active check
We were missing wakeups on the delayed ref waitqueue due to races on waitqueue_active. Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/extent-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 44f06201f376..4e1b153b7c47 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -5294,6 +5294,7 @@ static noinline int check_ref_cleanup(struct btrfs_trans_handle *trans,
5294 rb_erase(&head->node.rb_node, &delayed_refs->root); 5294 rb_erase(&head->node.rb_node, &delayed_refs->root);
5295 5295
5296 delayed_refs->num_entries--; 5296 delayed_refs->num_entries--;
5297 smp_mb();
5297 if (waitqueue_active(&root->fs_info->tree_mod_seq_wait)) 5298 if (waitqueue_active(&root->fs_info->tree_mod_seq_wait))
5298 wake_up(&root->fs_info->tree_mod_seq_wait); 5299 wake_up(&root->fs_info->tree_mod_seq_wait);
5299 5300