Commit 877d95b5 authored by Serguei Smirnov's avatar Serguei Smirnov Committed by Oleg Drokin
Browse files

LU-13892 lnet: lock-up during router check

This is a fix for the issue with LNet lock-up while waiting
for routers to become active with check_routers_before_use
option. Release ln_api_mutex while waiting to allow
incoming connections to be handled.
Signed-off-by: default avatarSerguei Smirnov <>
Change-Id: I63b1d1ce5ee2b27a3bd2cea78713fc6fc7502cf7

Tested-by: default avatarjenkins <>
Reviewed-by: default avatarOlaf Faaland-LLNL <>
Tested-by: default avatarMaloo <>
Reviewed-by: default avatarAmir Shehata <>
Reviewed-by: default avatarOleg Drokin <>
parent 2040144a
......@@ -842,6 +842,7 @@ lnet_wait_known_routerstate(void)
LASSERT(the_lnet.ln_mt_state == LNET_MT_STATE_RUNNING);
/* the_lnet.ln_api_mutex must be locked */
for (;;) {
int cpt = lnet_net_lock_current();
......@@ -865,8 +866,10 @@ lnet_wait_known_routerstate(void)
if (all_known)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment