aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/tree-log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 79f05bc9d6ec..7870bdba26b7 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -2448,8 +2448,8 @@ static void wait_for_writer(struct btrfs_trans_handle *trans,
2448 mutex_unlock(&root->log_mutex); 2448 mutex_unlock(&root->log_mutex);
2449 if (atomic_read(&root->log_writers)) 2449 if (atomic_read(&root->log_writers))
2450 schedule(); 2450 schedule();
2451 mutex_lock(&root->log_mutex);
2452 finish_wait(&root->log_writer_wait, &wait); 2451 finish_wait(&root->log_writer_wait, &wait);
2452 mutex_lock(&root->log_mutex);
2453 } 2453 }
2454} 2454}
2455 2455