Skip to content
Snippets Groups Projects
Commit 0325821b authored by Bobi Jam's avatar Bobi Jam
Browse files

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.
parent 3d3ae7ec
No related branches found
No related tags found
No related merge requests found
...@@ -330,7 +330,7 @@ static spinlock_t pet_lock = SPIN_LOCK_UNLOCKED; ...@@ -330,7 +330,7 @@ static spinlock_t pet_lock = SPIN_LOCK_UNLOCKED;
int ping_evictor_wake(struct obd_export *exp) int ping_evictor_wake(struct obd_export *exp)
{ {
spin_lock(&pet_lock); spin_lock(&pet_lock);
if (pet_exp) { if (pet_exp || (pet_state != PET_READY)) {
/* eventually the new obd will call here again. */ /* eventually the new obd will call here again. */
spin_unlock(&pet_lock); spin_unlock(&pet_lock);
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment