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
This commit is contained in:
Alexander Kabaev 2004-03-28 05:55:27 +00:00
parent 2aef37b7c6
commit 186c0bc04b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127515
2 changed files with 3 additions and 0 deletions

View File

@ -1188,6 +1188,7 @@ nfs_timer(void *arg)
}
}
splx(s);
callout_reset(&nfs_callout, nfs_ticks, nfs_timer, NULL);
}
/*

View File

@ -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
}