X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Flnet%2Frouter.c;fp=lnet%2Flnet%2Frouter.c;h=6daca44d55aa4bb065e09de0ba791c4f5c3040de;hp=9fdfc2ae3a0d35da5e461d2dd304a47d46b78ee5;hb=b81bcc6c6f0c54c48e908eccb13adc620582881e;hpb=d7bb6647cd4dd26949bceb6a099cd606623aff2b diff --git a/lnet/lnet/router.c b/lnet/lnet/router.c index 9fdfc2a..6daca44 100644 --- a/lnet/lnet/router.c +++ b/lnet/lnet/router.c @@ -706,7 +706,7 @@ lnet_add_route(__u32 net, __u32 hops, lnet_nid_t gateway, LIBCFS_FREE(rnet, sizeof(*rnet)); /* kick start the monitor thread to handle the added route */ - wake_up(&the_lnet.ln_mt_waitq); + complete(&the_lnet.ln_mt_wait_complete); return rc; } @@ -1458,7 +1458,7 @@ lnet_rtrpools_alloc(int im_a_router) lnet_net_lock(LNET_LOCK_EX); the_lnet.ln_routing = 1; lnet_net_unlock(LNET_LOCK_EX); - wake_up(&the_lnet.ln_mt_waitq); + complete(&the_lnet.ln_mt_wait_complete); return 0; failed: