Whamcloud - gitweb
LU-6142 lustre: use init_wait(), not init_waitqueue_entry()
[fs/lustre-release.git] / lustre / obdclass / upcall_cache.c
index 5622410..9624c0a 100644 (file)
@@ -217,7 +217,7 @@ find_again:
                              MAX_SCHEDULE_TIMEOUT;
                long left;
 
-               init_waitqueue_entry(&wait, current);
+               init_wait(&wait);
                add_wait_queue(&entry->ue_waitq, &wait);
                set_current_state(TASK_INTERRUPTIBLE);
                spin_unlock(&cache->uc_lock);