summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-02-22 09:39:22 +0000
committerdg <dg@FreeBSD.org>1995-02-22 09:39:22 +0000
commita3e510cad375d201e841755f4e199b6a42a9bdb1 (patch)
tree68ab1ef2f0448870ab5a5fc413634e7cc061582c /sys/kern/vfs_subr.c
parentd75f8d10b2950b124e56c9fdfa898a44b7c6eb42 (diff)
downloadFreeBSD-src-a3e510cad375d201e841755f4e199b6a42a9bdb1.zip
FreeBSD-src-a3e510cad375d201e841755f4e199b6a42a9bdb1.tar.gz
vfs_cluster.c:
Various more tweaks from John Dyson to improve read ahead calculations. vfs_subr.c: Only wakeup if numoutput is 0 in vwakeup(). Submitted by: John Dyson
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index adf6107..b1da080 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94
- * $Id: vfs_subr.c,v 1.14 1995/01/09 16:04:54 davidg Exp $
+ * $Id: vfs_subr.c,v 1.15 1995/01/10 07:32:36 davidg Exp $
*/
/*
@@ -417,7 +417,7 @@ vwakeup(bp)
vp->v_numoutput--;
if (vp->v_numoutput < 0)
panic("vwakeup: neg numoutput");
- if (vp->v_flag & VBWAIT) {
+ if ((vp->v_numoutput == 0) && (vp->v_flag & VBWAIT)) {
vp->v_flag &= ~VBWAIT;
wakeup((caddr_t) &vp->v_numoutput);
}
OpenPOWER on IntegriCloud