From: Oleg Drokin Date: Sun, 6 Nov 2011 19:06:40 +0000 (-0500) Subject: LU-482 test-framework: Ensure dirty cache is flushed before barrier X-Git-Tag: 2.1.52~9 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a0223bfc05d4f3d5aa3ee88229f6924fe0e68c95;hp=9edf01c3c7596e82aecd31b1a5ee06916bea6dad LU-482 test-framework: Ensure dirty cache is flushed before barrier With certain backend devices like LVM with older kernels the data in dirty cache cannot be propagated all the way to the block device with a single sync as there are multiple non-cooperating layers. So convert such sync calls into triple syncs Change-Id: If82e25223a277ec165d150b0f5f960ff845af9b0 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/1656 Reviewed-by: Yu Jian Reviewed-by: Niu Yawei Tested-by: Hudson Tested-by: Maloo Reviewed-by: Lai Siyao --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index b26be11..78a5802 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1545,7 +1545,7 @@ obd_name() { replay_barrier() { local facet=$1 - do_facet $facet sync + do_facet $facet "sync; sync; sync" df $MOUNT # make sure there will be no seq change @@ -1561,7 +1561,7 @@ replay_barrier() { replay_barrier_nodf() { local facet=$1 echo running=${running} - do_facet $facet sync + do_facet $facet "sync; sync; sync" local svc=${facet}_svc echo Replay barrier on ${!svc} do_facet $facet $LCTL --device %${!svc} notransno