summaryrefslogtreecommitdiffstats
path: root/sys/rpc
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-03-28 05:55:27 +0000
committerkan <kan@FreeBSD.org>2004-03-28 05:55:27 +0000
commit97b7fb767eb4f02ce1a1bbd1a932590a49e867a1 (patch)
treef47c5fea01eec4624d6cfbcf3e084bf42f395c85 /sys/rpc
parent07a326f176e1bf1225a851e37c2bb71bb9b34da6 (diff)
downloadFreeBSD-src-97b7fb767eb4f02ce1a1bbd1a932590a49e867a1.zip
FreeBSD-src-97b7fb767eb4f02ce1a1bbd1a932590a49e867a1.tar.gz
Reset callout if in nfs_timeout and rpcclnt_timeout functions. Timer
are supposed to continue firing as long as there is work to do, not stop after the first invocation. This is damage control after a patch that has been committed prematurely. Tested by: kris
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/rpcclnt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/rpc/rpcclnt.c b/sys/rpc/rpcclnt.c
index 49ffea0..5b570c2 100644
--- a/sys/rpc/rpcclnt.c
+++ b/sys/rpc/rpcclnt.c
@@ -1478,6 +1478,8 @@ rpcclnt_timer(arg)
#ifdef __OpenBSD__
timeout_add(rpcclnt_timer, to, rpcclnt_ticks);
+#else
+ callout_reset(&rpcclnt_callout, rpcclnt_ticks, rpcclnt_timer, NULL);
#endif
}
OpenPOWER on IntegriCloud