Whamcloud - gitweb
LU-482 test-framework: Ensure dirty cache is flushed before barrier
authorOleg Drokin <green@whamcloud.com>
Sun, 6 Nov 2011 19:06:40 +0000 (14:06 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Nov 2011 16:33:07 +0000 (11:33 -0500)
commita0223bfc05d4f3d5aa3ee88229f6924fe0e68c95
tree0bf22942839a7bb0cf9849e99bdd615e46fef37a
parent9edf01c3c7596e82aecd31b1a5ee06916bea6dad
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 <green@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1656
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
lustre/tests/test-framework.sh