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 480c6fb commit 51f39f2Copy full SHA for 51f39f2
fs/btrfs/disk-io.c
@@ -4155,6 +4155,14 @@ static void btrfs_destroy_all_ordered_extents(struct btrfs_fs_info *fs_info)
4155
spin_lock(&fs_info->ordered_root_lock);
4156
}
4157
spin_unlock(&fs_info->ordered_root_lock);
4158
+
4159
+ /*
4160
+ * We need this here because if we've been flipped read-only we won't
4161
+ * get sync() from the umount, so we need to make sure any ordered
4162
+ * extents that haven't had their dirty pages IO start writeout yet
4163
+ * actually get run and error out properly.
4164
+ */
4165
+ btrfs_wait_ordered_roots(fs_info, U64_MAX, 0, (u64)-1);
4166
4167
4168
static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans,
0 commit comments