Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310819
b: refs/heads/master
c: d7096fc
h: refs/heads/master
i:
  310817: 30ddf84
  310815: dca0395
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Jun 15, 2012
1 parent 6354d58 commit 7c19b35
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b939d1ab76b4aa816343cdbd8b44ce9929a3b9ef
refs/heads/master: d7096fc3ef8360f30f228344bc564d4f97d8a158
9 changes: 3 additions & 6 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -3589,16 +3589,13 @@ void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans,
/* FIXME: cleanup wait for commit */
cur_trans->in_commit = 1;
cur_trans->blocked = 1;
if (waitqueue_active(&root->fs_info->transaction_blocked_wait))
wake_up(&root->fs_info->transaction_blocked_wait);
wake_up(&root->fs_info->transaction_blocked_wait);

cur_trans->blocked = 0;
if (waitqueue_active(&root->fs_info->transaction_wait))
wake_up(&root->fs_info->transaction_wait);
wake_up(&root->fs_info->transaction_wait);

cur_trans->commit_done = 1;
if (waitqueue_active(&cur_trans->commit_wait))
wake_up(&cur_trans->commit_wait);
wake_up(&cur_trans->commit_wait);

btrfs_destroy_pending_snapshots(cur_trans);

Expand Down
4 changes: 4 additions & 0 deletions trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,10 @@ static void cleanup_transaction(struct btrfs_trans_handle *trans,

spin_lock(&root->fs_info->trans_lock);
list_del_init(&cur_trans->list);
if (cur_trans == root->fs_info->running_transaction) {
root->fs_info->running_transaction = NULL;
root->fs_info->trans_no_join = 0;
}
spin_unlock(&root->fs_info->trans_lock);

btrfs_cleanup_one_transaction(trans->transaction, root);
Expand Down

0 comments on commit 7c19b35

Please sign in to comment.