Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167589
b: refs/heads/master
c: 86df7eb
h: refs/heads/master
i:
  167587: c7cd307
v: v3
  • Loading branch information
Yan, Zheng authored and Chris Mason committed Oct 14, 2009
1 parent 440bb65 commit f257516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 5d5e103a70f74ae98e3965a4add1ab951d0651d1
refs/heads/master: 86df7eb921a009515285e7171363fa57dd2d7d31
11 changes: 6 additions & 5 deletions trunk/fs/btrfs/tree-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -1995,12 +1995,13 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans,
if (atomic_read(&root->log_commit[(index1 + 1) % 2]))
wait_log_commit(trans, root, root->log_transid - 1);

while (root->log_multiple_pids) {
while (1) {
unsigned long batch = root->log_batch;
mutex_unlock(&root->log_mutex);
schedule_timeout_uninterruptible(1);
mutex_lock(&root->log_mutex);

if (root->log_multiple_pids) {
mutex_unlock(&root->log_mutex);
schedule_timeout_uninterruptible(1);
mutex_lock(&root->log_mutex);
}
wait_for_writer(trans, root);
if (batch == root->log_batch)
break;
Expand Down

0 comments on commit f257516

Please sign in to comment.