svn commit: r191814 - in stable/7/sys: . contrib/pf dev/ath/ath_hal
dev/cxgb kern
Konstantin Belousov
kib at FreeBSD.org
Tue May 5 10:43:15 UTC 2009
Author: kib
Date: Tue May 5 10:43:14 2009
New Revision: 191814
URL: http://svn.freebsd.org/changeset/base/191814
Log:
MFC r191135:
Export the number of times bufdaemon got help from the normal threads.
Modified:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/ath/ath_hal/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
stable/7/sys/kern/vfs_bio.c
Modified: stable/7/sys/kern/vfs_bio.c
==============================================================================
--- stable/7/sys/kern/vfs_bio.c Tue May 5 10:34:43 2009 (r191813)
+++ stable/7/sys/kern/vfs_bio.c Tue May 5 10:43:14 2009 (r191814)
@@ -191,6 +191,9 @@ SYSCTL_INT(_vfs, OID_AUTO, getnewbufrest
static int flushbufqtarget = -1;
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, ¬bufdflashes, 0,
+ "Number of dirty buffer flushes done by the bufdaemon helpers");
/*
* Wakeup point for bufdaemon, as well as indicator of whether it is already
@@ -2280,6 +2283,7 @@ flushbufqueues(struct vnode *lvp, int qu
else {
bremfree(bp);
bwrite(bp);
+ notbufdflashes++;
}
vn_finished_write(mp);
VOP_UNLOCK(vp, 0, td);
More information about the svn-src-stable-7
mailing list