From: bobijam Date: Thu, 17 Jan 2008 05:51:28 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_7_0_51~313 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=d9921865b197612c160c728033b351e029677780;p=fs%2Flustre-release.git Branch HEAD b=13999 i=johann i=shadow Don't attempt to wake up evictor thread if it hasn't started yet. --- diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index aa65e6b..d4f969a 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;