Whamcloud - gitweb
Branch HEAD
authorbobijam <bobijam>
Thu, 17 Jan 2008 05:51:28 +0000 (05:51 +0000)
committerbobijam <bobijam>
Thu, 17 Jan 2008 05:51:28 +0000 (05:51 +0000)
b=13999
i=johann
i=shadow

Don't attempt to wake up evictor thread if it hasn't started yet.

lustre/ptlrpc/pinger.c

index aa65e6b..d4f969a 100644 (file)
@@ -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;