From d9921865b197612c160c728033b351e029677780 Mon Sep 17 00:00:00 2001 From: bobijam <bobijam> Date: Thu, 17 Jan 2008 05:51:28 +0000 Subject: [PATCH] Branch HEAD b=13999 i=johann i=shadow Don't attempt to wake up evictor thread if it hasn't started yet. --- lustre/ptlrpc/pinger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index aa65e6b79e..d4f969a4fa 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -391,7 +391,7 @@ static spinlock_t pet_lock = SPIN_LOCK_UNLOCKED; int ping_evictor_wake(struct obd_export *exp) { spin_lock(&pet_lock); - if (pet_exp) { + if (pet_exp || (pet_state != PET_READY)) { /* eventually the new obd will call here again. */ spin_unlock(&pet_lock); return 1; -- GitLab