From 0325821b562b01bb03bf44146150b26bd3174afa Mon Sep 17 00:00:00 2001 From: bobijam Date: Thu, 31 Jan 2008 02:24:11 +0000 Subject: [PATCH] Branch b1_6 b=13999 o=Philippe Bernadat(philippe.bernadat@hp.com) 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 68cc9f2..32bd0ea 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -330,7 +330,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; -- 1.8.3.1