Document that there seems to be a problem with the syncer not running
authorDavid Rhodus <drhodus@dragonflybsd.org>
Mon, 9 Aug 2004 02:59:31 +0000 (02:59 +0000)
committerDavid Rhodus <drhodus@dragonflybsd.org>
Mon, 9 Aug 2004 02:59:31 +0000 (02:59 +0000)
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

index 5776390..6bf0a70 100644 (file)
@@ -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 ? */