hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/fs/ceph/super.c
....@@ -1222,6 +1222,16 @@
12221222 ceph_mdsc_pre_umount(fsc->mdsc);
12231223 flush_fs_workqueues(fsc);
12241224
1225
+ /*
1226
+ * Though the kill_anon_super() will finally trigger the
1227
+ * sync_filesystem() anyway, we still need to do it here
1228
+ * and then bump the stage of shutdown to stop the work
1229
+ * queue as earlier as possible.
1230
+ */
1231
+ sync_filesystem(s);
1232
+
1233
+ fsc->mdsc->stopping = CEPH_MDSC_STOPPING_FLUSHED;
1234
+
12251235 kill_anon_super(s);
12261236
12271237 fsc->client->extra_mon_dispatch = NULL;