Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260895
b: refs/heads/master
c: 81317fd
h: refs/heads/master
i:
  260893: ff0e4e4
  260891: 577e283
  260887: 338853f
  260879: fae5ace
  260863: a1ab433
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Jul 27, 2011
1 parent e0fbb02 commit 80469a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: a65917156e345946dbde3d7effd28124c6d6a8c2
refs/heads/master: 81317fdeddcef259b6ecf7b5c0d04caa167c6b54
11 changes: 9 additions & 2 deletions trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,17 @@ static int __btrfs_end_transaction(struct btrfs_trans_handle *trans,
}

if (lock && cur_trans->blocked && !cur_trans->in_commit) {
if (throttle)
if (throttle) {
/*
* We may race with somebody else here so end up having
* to call end_transaction on ourselves again, so inc
* our use_count.
*/
trans->use_count++;
return btrfs_commit_transaction(trans, root);
else
} else {
wake_up_process(info->transaction_kthread);
}
}

WARN_ON(cur_trans != info->running_transaction);
Expand Down

0 comments on commit 80469a2

Please sign in to comment.