From 710df9a18ec010d2ccb4e4463cb5163e0c565fc9 Mon Sep 17 00:00:00 2001 From: vitaly Date: Thu, 22 Jan 2009 20:52:17 +0000 Subject: [PATCH] Branch b1_8 b=17748 i=grev i=adilger sanityN test fix --- lustre/ldlm/ldlm_lockd.c | 2 +- lustre/tests/sanityN.sh | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lustre/ldlm/ldlm_lockd.c b/lustre/ldlm/ldlm_lockd.c index d255360..2a36093 100644 --- a/lustre/ldlm/ldlm_lockd.c +++ b/lustre/ldlm/ldlm_lockd.c @@ -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))) diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index ed31f66..28a3b52 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -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 -- 1.8.3.1