LASSERT (msg->msg_onactivelist);
msg->msg_onactivelist = 0;
- list_del (&msg->msg_activelist);
+ cfs_list_del (&msg->msg_activelist);
the_lnet.ln_counters.msgs_alloc--;
lnet_msg_free(msg);
}
#endif
lnet_libmd_t *md;
- LASSERT (!in_interrupt ());
+ LASSERT (!cfs_in_interrupt ());
if (msg == NULL)
return;
msg->msg_md = NULL;
}
- list_add_tail (&msg->msg_list, &the_lnet.ln_finalizeq);
+ cfs_list_add_tail (&msg->msg_list, &the_lnet.ln_finalizeq);
/* Recursion breaker. Don't complete the message here if I am (or
* enough other threads are) already completing messages */
the_lnet.ln_finalizing = 1;
#endif
- while (!list_empty(&the_lnet.ln_finalizeq)) {
- msg = list_entry(the_lnet.ln_finalizeq.next,
- lnet_msg_t, msg_list);
-
- list_del(&msg->msg_list);
+ while (!cfs_list_empty(&the_lnet.ln_finalizeq)) {
+ msg = cfs_list_entry(the_lnet.ln_finalizeq.next,
+ lnet_msg_t, msg_list);
+
+ cfs_list_del(&msg->msg_list);
/* NB drops and regains the lnet lock if it actually does
* anything, so my finalizing friends can chomp along too */