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 (parent:
23236e3
)
i=eeb:
author
isaac
<isaac>
Wed, 12 Sep 2007 16:31:46 +0000
(16:31 +0000)
committer
isaac
<isaac>
Wed, 12 Sep 2007 16:31:46 +0000
(16:31 +0000)
- shall lnet_rtr_decref_locked when removing zombie routes.
lnet/lnet/router.c
patch
|
blob
|
history
diff --git
a/lnet/lnet/router.c
b/lnet/lnet/router.c
index
df1bfc8
..
aee3334
100644
(file)
--- a/
lnet/lnet/router.c
+++ b/
lnet/lnet/router.c
@@
-395,6
+395,7
@@
lnet_add_route (__u32 net, unsigned int hops, lnet_nid_t gateway)
list_del(&route->lr_list);
LNET_LOCK();
list_del(&route->lr_list);
LNET_LOCK();
+ lnet_rtr_decref_locked(route->lr_gateway);
lnet_peer_decref_locked(route->lr_gateway);
LNET_UNLOCK();
LIBCFS_FREE(route, sizeof(*route));
lnet_peer_decref_locked(route->lr_gateway);
LNET_UNLOCK();
LIBCFS_FREE(route, sizeof(*route));