We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31890da commit 74d5d22Copy full SHA for 74d5d22
fs/btrfs/disk-io.c
@@ -4201,6 +4201,14 @@ static void btrfs_destroy_all_ordered_extents(struct btrfs_fs_info *fs_info)
4201
spin_lock(&fs_info->ordered_root_lock);
4202
}
4203
spin_unlock(&fs_info->ordered_root_lock);
4204
+
4205
+ /*
4206
+ * We need this here because if we've been flipped read-only we won't
4207
+ * get sync() from the umount, so we need to make sure any ordered
4208
+ * extents that haven't had their dirty pages IO start writeout yet
4209
+ * actually get run and error out properly.
4210
+ */
4211
+ btrfs_wait_ordered_roots(fs_info, U64_MAX, 0, (u64)-1);
4212
4213
4214
static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans,
0 commit comments