Whamcloud - gitweb
LU-6359 test: fix test_10d of recovery-small 55/16155/3
authorNiu Yawei <yawei.niu@intel.com>
Tue, 1 Sep 2015 04:44:02 +0000 (00:44 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 14 Sep 2015 17:20:09 +0000 (17:20 +0000)
Drop unused locks and replace drop_bl_callback_once() with
drop_bl_callback() to avoid interference from other cached locks.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Id2846aed1f8e9e47e2a35fd8de122cc571002ffd
Reviewed-on: http://review.whamcloud.com/16155
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/recovery-small.sh

index 578f911..a2fb151 100755 (executable)
@@ -210,12 +210,13 @@ test_10d() {
 
        mount_client $MOUNT2
 
 
        mount_client $MOUNT2
 
+       cancel_lru_locks osc
        $LFS setstripe -i 0 -c 1 $DIR1/$tfile
        echo -n hello > $DIR1/$tfile
 
        stat $DIR2/$tfile >& /dev/null
        $LCTL set_param fail_err=71
        $LFS setstripe -i 0 -c 1 $DIR1/$tfile
        echo -n hello > $DIR1/$tfile
 
        stat $DIR2/$tfile >& /dev/null
        $LCTL set_param fail_err=71
-       drop_bl_callback_once "echo -n \\\", world\\\" >> $DIR2/$tfile"
+       drop_bl_callback "echo -n \\\", world\\\" >> $DIR2/$tfile"
 
        client_reconnect
 
 
        client_reconnect