Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
b=22075 buffalo-v2 should detect test timeouts
[fs/lustre-release.git]
/
lnet
/
lnet
/
lib-msg.c
diff --git
a/lnet/lnet/lib-msg.c
b/lnet/lnet/lib-msg.c
index
28aea30
..
089d788
100644
(file)
--- a/
lnet/lnet/lib-msg.c
+++ b/
lnet/lnet/lib-msg.c
@@
-45,6
+45,8
@@
void
lnet_build_unlink_event (lnet_libmd_t *md, lnet_event_t *ev)
{
void
lnet_build_unlink_event (lnet_libmd_t *md, lnet_event_t *ev)
{
+ ENTRY;
+
memset(ev, 0, sizeof(*ev));
ev->status = 0;
memset(ev, 0, sizeof(*ev));
ev->status = 0;
@@
-52,6
+54,7
@@
lnet_build_unlink_event (lnet_libmd_t *md, lnet_event_t *ev)
ev->type = LNET_EVENT_UNLINK;
lnet_md_deconstruct(md, &ev->md);
lnet_md2handle(&ev->md_handle, md);
ev->type = LNET_EVENT_UNLINK;
lnet_md_deconstruct(md, &ev->md);
lnet_md2handle(&ev->md_handle, md);
+ EXIT;
}
void
}
void
@@
-144,7
+147,7
@@
lnet_complete_msg_locked(lnet_msg_t *msg)
LASSERT (msg->msg_onactivelist);
msg->msg_onactivelist = 0;
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);
}
the_lnet.ln_counters.msgs_alloc--;
lnet_msg_free(msg);
}
@@
-159,7
+162,7
@@
lnet_finalize (lnet_ni_t *ni, lnet_msg_t *msg, int status)
#endif
lnet_libmd_t *md;
#endif
lnet_libmd_t *md;
- LASSERT (!in_interrupt ());
+ LASSERT (!
cfs_
in_interrupt ());
if (msg == NULL)
return;
if (msg == NULL)
return;
@@
-207,7
+210,7
@@
lnet_finalize (lnet_ni_t *ni, lnet_msg_t *msg, int status)
msg->msg_md = NULL;
}
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 */
/* Recursion breaker. Don't complete the message here if I am (or
* enough other threads are) already completing messages */
@@
-231,11
+234,11
@@
lnet_finalize (lnet_ni_t *ni, lnet_msg_t *msg, int status)
the_lnet.ln_finalizing = 1;
#endif
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 */
/* NB drops and regains the lnet lock if it actually does
* anything, so my finalizing friends can chomp along too */