From e200c40d7742b32aca645cda36664ea2eb9e7f56 Mon Sep 17 00:00:00 2001 From: David Rhodus Date: Mon, 9 Aug 2004 02:59:31 +0000 Subject: [PATCH] Document that there seems to be a problem with the syncer not running here and that we are using a work around. If a buffer won't flush after 6 attempts we allow the syncer to run to process any soft update dependency lists. --- sys/kern/kern_shutdown.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 577639017b..6bf0a705e6 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -37,7 +37,7 @@ * * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 * $FreeBSD: src/sys/kern/kern_shutdown.c,v 1.72.2.12 2002/02/21 19:15:10 dillon Exp $ - * $DragonFly: src/sys/kern/kern_shutdown.c,v 1.17 2004/06/24 16:49:13 drhodus Exp $ + * $DragonFly: src/sys/kern/kern_shutdown.c,v 1.18 2004/08/09 02:59:31 drhodus Exp $ */ #include "opt_ddb.h" @@ -274,6 +274,11 @@ boot(int howto) if (nbusy < pbusy) iter = 0; pbusy = nbusy; + /* + * XXX: + * Process soft update work queue if buffers don't sync + * after 6 iterations by permitting the syncer to run. + */ if (iter > 5 && bioops.io_sync) (*bioops.io_sync)(NULL); sync(NULL); /* YYY was sync(&proc0, NULL). why proc0 ? */ -- 2.41.0