Whamcloud - gitweb
LU-12424 lnet: prevent loop in LNetPrimaryNID()
[fs/lustre-release.git] / lnet / lnet / lib-eq.c
index c827e65..354c976 100644 (file)
@@ -159,8 +159,6 @@ LNetEQFree(struct lnet_handle_eq eqh)
        int             size = 0;
        int             i;
 
-       LASSERT(the_lnet.ln_refcount > 0);
-
        lnet_res_lock(LNET_LOCK_EX);
        /* NB: hold lnet_eq_wait_lock for EQ link/unlink, so we can do
         * both EQ lookup and poll event with only lnet_eq_wait_lock */
@@ -323,7 +321,7 @@ lnet_eq_wait_locked(signed long *timeout)
 __must_hold(&the_lnet.ln_eq_wait_lock)
 {
        signed long tms = *timeout;
-       wait_queue_t wl;
+       wait_queue_entry_t wl;
        int wait;
 
        if (tms == 0)