From 4a5da163596371286e1a371c02296097e45d33df Mon Sep 17 00:00:00 2001 From: vitaly Date: Thu, 22 Jan 2009 19:43:54 +0000 Subject: [PATCH] Branch HEAD 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 dec536a..ce66f5c 100644 --- a/lustre/ldlm/ldlm_lockd.c +++ b/lustre/ldlm/ldlm_lockd.c @@ -391,7 +391,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 983dc80..4dd8bbd 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -804,8 +804,6 @@ test_34() { #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