From 9c70433c2c2c85ab21ef67e24dc27d48a3c40832 Mon Sep 17 00:00:00 2001 From: ericm Date: Wed, 20 Aug 2003 08:22:54 +0000 Subject: [PATCH] [tcpnal}: temporarily work around for nal thread endless waiting problem. --- lnet/ulnds/select.c | 9 +++++++++ lnet/ulnds/socklnd/select.c | 9 +++++++++ lustre/portals/unals/select.c | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/lnet/ulnds/select.c b/lnet/ulnds/select.c index bcfba02..1dd547a 100644 --- a/lnet/ulnds/select.c +++ b/lnet/ulnds/select.c @@ -126,6 +126,15 @@ void select_timer_block(when until) timeout_pointer=&timeout; } else timeout_pointer=0; + + /* FIXME + * temporarily add timer for endless waiting problem. + * FIXME + */ + timeout.tv_sec = 1; + timeout.tv_usec = 0; + timeout_pointer=&timeout; + FD_ZERO(&fds[0]); FD_ZERO(&fds[1]); FD_ZERO(&fds[2]); diff --git a/lnet/ulnds/socklnd/select.c b/lnet/ulnds/socklnd/select.c index bcfba02..1dd547a 100644 --- a/lnet/ulnds/socklnd/select.c +++ b/lnet/ulnds/socklnd/select.c @@ -126,6 +126,15 @@ void select_timer_block(when until) timeout_pointer=&timeout; } else timeout_pointer=0; + + /* FIXME + * temporarily add timer for endless waiting problem. + * FIXME + */ + timeout.tv_sec = 1; + timeout.tv_usec = 0; + timeout_pointer=&timeout; + FD_ZERO(&fds[0]); FD_ZERO(&fds[1]); FD_ZERO(&fds[2]); diff --git a/lustre/portals/unals/select.c b/lustre/portals/unals/select.c index bcfba02..1dd547a 100644 --- a/lustre/portals/unals/select.c +++ b/lustre/portals/unals/select.c @@ -126,6 +126,15 @@ void select_timer_block(when until) timeout_pointer=&timeout; } else timeout_pointer=0; + + /* FIXME + * temporarily add timer for endless waiting problem. + * FIXME + */ + timeout.tv_sec = 1; + timeout.tv_usec = 0; + timeout_pointer=&timeout; + FD_ZERO(&fds[0]); FD_ZERO(&fds[1]); FD_ZERO(&fds[2]); -- 1.8.3.1