From 371400cf2e5f48ca824463c319652c7fdbd80c8a Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 29 Dec 2002 11:18:25 +0000 Subject: [PATCH] Use a timeout of one second while we wait for the vnode washer, this prevents a potential race and makes the system a little bit less jerky under extreme loads. --- sys/kern/vfs_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 55846664b1c6..311ea54b6aa0 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -753,7 +753,7 @@ vnlru_proc(void) mtx_unlock(&vnode_free_list_mtx); vnlruproc_sig = 0; wakeup(&vnlruproc_sig); - tsleep(vnlruproc, PVFS, "vlruwt", 0); + tsleep(vnlruproc, PVFS, "vlruwt", hz); continue; } mtx_unlock(&vnode_free_list_mtx);