Author: kib
Date: Thu Apr 16 09:33:52 2009
New Revision: 191135
URL: http://svn.freebsd.org/changeset/base/191135

Log:
  Export the number of times bufdaemon got help from the normal threads.

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c     Thu Apr 16 05:52:47 2009        (r191134)
+++ head/sys/kern/vfs_bio.c     Thu Apr 16 09:33:52 2009        (r191135)
@@ -202,6 +202,9 @@ SYSCTL_INT(_vfs, OID_AUTO, getnewbufrest
 static int flushbufqtarget = 100;
 SYSCTL_INT(_vfs, OID_AUTO, flushbufqtarget, CTLFLAG_RW, &flushbufqtarget, 0,
     "Amount of work to do in flushbufqueues when helping bufdaemon");
+static long notbufdflashes;
+SYSCTL_LONG(_vfs, OID_AUTO, notbufdflashes, CTLFLAG_RD, &notbufdflashes, 0,
+    "Number of dirty buffer flushes done by the bufdaemon helpers");
 
 /*
  * Wakeup point for bufdaemon, as well as indicator of whether it is already
@@ -2281,6 +2284,7 @@ flushbufqueues(struct vnode *lvp, int qu
                        else {
                                bremfree(bp);
                                bwrite(bp);
+                               notbufdflashes++;
                        }
                        vn_finished_write(mp);
                        VOP_UNLOCK(vp, 0);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to