Whamcloud - gitweb
Branch b1_8
authorvitaly <vitaly>
Thu, 22 Jan 2009 20:52:17 +0000 (20:52 +0000)
committervitaly <vitaly>
Thu, 22 Jan 2009 20:52:17 +0000 (20:52 +0000)
b=17748
i=grev
i=adilger

sanityN test fix

lustre/ldlm/ldlm_lockd.c
lustre/tests/sanityN.sh

index d255360..2a36093 100644 (file)
@@ -373,7 +373,7 @@ static int __ldlm_add_waiting_lock(struct ldlm_lock *lock, int seconds)
 
         if (OBD_FAIL_CHECK(OBD_FAIL_PTLRPC_HPREQ_NOTIMEOUT) ||
             OBD_FAIL_CHECK(OBD_FAIL_PTLRPC_HPREQ_TIMEOUT))
-                seconds = 2;
+                seconds = 1;
 
         timeout = cfs_time_shift(seconds);
         if (likely(cfs_time_after(timeout, lock->l_callback_timeout)))
index ed31f66..28a3b52 100644 (file)
@@ -714,8 +714,6 @@ test_33() { #16129
                 echo writing on client1
                 dd if=/dev/zero of=$DIR1/$tfile count=100 conv=notrunc > /dev/null 2>&1
                 sync &
-                # wait for the flush
-                sleep 1
                 echo reading on client2
                 dd of=/dev/null if=$DIR2/$tfile > /dev/null 2>&1
                 # wait for a lock timeout