Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d3bc331
)
- on returning -EBUSY in LNetEQFree, print eq_refcount which is a useful piece
author
isaac
<isaac>
Mon, 14 Jul 2008 22:14:19 +0000
(22:14 +0000)
committer
isaac
<isaac>
Mon, 14 Jul 2008 22:14:19 +0000
(22:14 +0000)
of debug information.
lnet/lnet/lib-eq.c
patch
|
blob
|
history
diff --git
a/lnet/lnet/lib-eq.c
b/lnet/lnet/lib-eq.c
index
35801a4
..
83c841a
100644
(file)
--- a/
lnet/lnet/lib-eq.c
+++ b/
lnet/lnet/lib-eq.c
@@
-102,6
+102,8
@@
LNetEQFree(lnet_handle_eq_t eqh)
}
if (eq->eq_refcount != 0) {
+ CDEBUG(D_NET, "Event queue (%d) busy on destroy.\n",
+ eq->eq_refcount);
LNET_UNLOCK();
return (-EBUSY);
}
@@
-295,7
+297,7
@@
LNetEQPoll (lnet_handle_eq_t *eventqs, int neq, int timeout_ms,
gettimeofday(&then, NULL);
ts.tv_sec = then.tv_sec + timeout_ms/1000;
- ts.tv_nsec = then.tv_usec * 1000 +
+ ts.tv_nsec = then.tv_usec * 1000 +
(timeout_ms%1000) * 1000000;
if (ts.tv_nsec >= 1000000000) {
ts.tv_sec++;