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 0400be1 commit f97fd29Copy full SHA for f97fd29
fs/btrfs/disk-io.c
@@ -4115,6 +4115,14 @@ static void btrfs_destroy_all_ordered_extents(struct btrfs_fs_info *fs_info)
4115
spin_lock(&fs_info->ordered_root_lock);
4116
}
4117
spin_unlock(&fs_info->ordered_root_lock);
4118
+
4119
+ /*
4120
+ * We need this here because if we've been flipped read-only we won't
4121
+ * get sync() from the umount, so we need to make sure any ordered
4122
+ * extents that haven't had their dirty pages IO start writeout yet
4123
+ * actually get run and error out properly.
4124
+ */
4125
+ btrfs_wait_ordered_roots(fs_info, U64_MAX, 0, (u64)-1);
4126
4127
4128
static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans,
0 commit comments