45NhhVPko5txKuuzDPqhyK changeset

Changeset333964363564 (b)
Parent316565343030 (a)
ab
1515+               nolock = true;
1616+       } else if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) {
1717+               spin_lock(&fs_info->trans_lock);
...
18-+               if (fs_info->running_transaction)
18++               if (fs_info->running_transaction &&
18++                   fs_info->running_transaction->state >=
18++                   TRANS_STATE_COMMIT_START)
...
1919+                       nolock = true;
2020+               spin_unlock(&fs_info->trans_lock);
2121+       }
...
1
2
3
4
5
6
7
8
9
10
11
12
13
--- Revision 316565343030
+++ Revision 333964363564
@@ -16,7 +16,9 @@
+ nolock = true;
+ } else if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) {
+ spin_lock(&fs_info->trans_lock);
-+ if (fs_info->running_transaction)
++ if (fs_info->running_transaction &&
++ fs_info->running_transaction->state >=
++ TRANS_STATE_COMMIT_START)
+ nolock = true;
+ spin_unlock(&fs_info->trans_lock);
+ }