Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-3469 osp: osp_sync() to flush pending changes synchronously
[fs/lustre-release.git]
/
lustre
/
lfsck
/
lfsck_layout.c
diff --git
a/lustre/lfsck/lfsck_layout.c
b/lustre/lfsck/lfsck_layout.c
index
3ee62b2
..
98e61d2
100644
(file)
--- a/
lustre/lfsck/lfsck_layout.c
+++ b/
lustre/lfsck/lfsck_layout.c
@@
-3559,6
+3559,9
@@
static int lfsck_layout_assistant(void *args)
com->lc_time_last_checkpoint +
cfs_time_seconds(LFSCK_CHECKPOINT_INTERVAL);
com->lc_time_last_checkpoint +
cfs_time_seconds(LFSCK_CHECKPOINT_INTERVAL);
+ /* flush all async updating before handling orphan. */
+ dt_sync(env, lfsck->li_next);
+
while (llmd->llmd_in_double_scan) {
struct lfsck_tgt_descs *ltds =
&lfsck->li_ost_descs;
while (llmd->llmd_in_double_scan) {
struct lfsck_tgt_descs *ltds =
&lfsck->li_ost_descs;