Loading fs/btrfs/transaction.c +6 −0 Original line number Diff line number Diff line Loading @@ -82,6 +82,12 @@ void btrfs_put_transaction(struct btrfs_transaction *transaction) static void clear_btree_io_tree(struct extent_io_tree *tree) { spin_lock(&tree->lock); /* * Do a single barrier for the waitqueue_active check here, the state * of the waitqueue should not change once clear_btree_io_tree is * called. */ smp_mb(); while (!RB_EMPTY_ROOT(&tree->state)) { struct rb_node *node; struct extent_state *state; Loading Loading
fs/btrfs/transaction.c +6 −0 Original line number Diff line number Diff line Loading @@ -82,6 +82,12 @@ void btrfs_put_transaction(struct btrfs_transaction *transaction) static void clear_btree_io_tree(struct extent_io_tree *tree) { spin_lock(&tree->lock); /* * Do a single barrier for the waitqueue_active check here, the state * of the waitqueue should not change once clear_btree_io_tree is * called. */ smp_mb(); while (!RB_EMPTY_ROOT(&tree->state)) { struct rb_node *node; struct extent_state *state; Loading