kernel/fs/ceph/super.c
.. .. @@ -1222,6 +1222,16 @@ 1222 1222 ceph_mdsc_pre_umount(fsc->mdsc); 1223 1223 flush_fs_workqueues(fsc); 1224 1224 1225 + /*1226 + * Though the kill_anon_super() will finally trigger the1227 + * sync_filesystem() anyway, we still need to do it here1228 + * and then bump the stage of shutdown to stop the work1229 + * queue as earlier as possible.1230 + */1231 + sync_filesystem(s);1232 +1233 + fsc->mdsc->stopping = CEPH_MDSC_STOPPING_FLUSHED;1234 +1225 1235 kill_anon_super(s); 1226 1236 1227 1237 fsc->client->extra_mon_dispatch = NULL;