Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144226
b: refs/heads/master
c: 59bc5c7
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Apr 24, 2009
1 parent 715bf8e commit a231829
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e980b50cda1610f1c17978d9b7fd311a9dd93877
refs/heads/master: 59bc5c758ece00fb0b2a170dd8fbbf31f1856c8a
6 changes: 6 additions & 0 deletions trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,13 @@ static noinline int wait_transaction_pre_flush(struct btrfs_fs_info *info)
prepare_to_wait(&info->transaction_wait, &wait,
TASK_UNINTERRUPTIBLE);
mutex_unlock(&info->trans_mutex);

atomic_dec(&info->throttles);
wake_up(&info->transaction_throttle);

schedule();

atomic_inc(&info->throttles);
mutex_lock(&info->trans_mutex);
finish_wait(&info->transaction_wait, &wait);
}
Expand Down

0 comments on commit a231829

Please sign in to comment.