Whamcloud - gitweb
LU-4970 lfsck: flush async updating before exit 76/11276/4
authorFan Yong <fan.yong@intel.com>
Mon, 23 Jun 2014 22:01:52 +0000 (06:01 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 25 Aug 2014 16:55:04 +0000 (16:55 +0000)
Otherwise, the test scripts may get some internal status by race.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I4af07cf91f6b6c77d5cab67fc0df21b27174ee4c
Reviewed-on: http://review.whamcloud.com/11276
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/lfsck/lfsck_layout.c
lustre/tests/sanity-lfsck.sh

index ba861c0..87acec9 100644 (file)
@@ -3807,6 +3807,9 @@ cleanup2:
                rc = rc1;
        }
 
+       /* flush all async updating before exit. */
+       dt_sync(env, lfsck->li_next);
+
        /* Under force exit case, some requests may be just freed without
         * verification, those objects should be re-handled when next run.
         * So not update the on-disk tracing file under such case. */
index 34ee6ed..18c6bbb 100644 (file)
@@ -43,10 +43,6 @@ setupall
 [[ $(lustre_version_code ost1) -lt $(version_code 2.5.55) ]] &&
        ALWAYS_EXCEPT="$ALWAYS_EXCEPT 11 12 13 14 15 16 17 18 19 20 21"
 
-[ $(facet_fstype $SINGLEMDS) = "zfs" ] &&
-# bug number for skipped test:        LU-4970
-       ALWAYS_EXCEPT="$ALWAYS_EXCEPT 14"
-
 build_test_filter
 
 $LCTL set_param debug=+lfsck > /dev/null || true