aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/sys_generic.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2000-12-07 23:45:57 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2000-12-07 23:45:57 +0000
commita41ce5d30b269b078b411f7b80e251adedaf0127 (patch)
tree698828597f4935b73fc138854c33688136d2e395 /sys/kern/sys_generic.c
parent15f43fcb0bb51a159b3d3c36e85d0f2b5202ec86 (diff)
downloadsrc-a41ce5d30b269b078b411f7b80e251adedaf0127.tar.gz
src-a41ce5d30b269b078b411f7b80e251adedaf0127.zip
Only call bwillwrite() for vnodes. Do not penalize devices or pipes.
Notes
Notes: svn path=/head/; revision=69733
Diffstat (limited to 'sys/kern/sys_generic.c')
-rw-r--r--sys/kern/sys_generic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c
index bce9231da92a..555cb6803d43 100644
--- a/sys/kern/sys_generic.c
+++ b/sys/kern/sys_generic.c
@@ -496,7 +496,8 @@ writev(p, uap)
}
#endif
cnt = auio.uio_resid;
- bwillwrite();
+ if (fp->f_type == DTYPE_VNODE)
+ bwillwrite();
if ((error = fo_write(fp, &auio, fp->f_cred, 0, p))) {
if (auio.uio_resid != cnt && (error == ERESTART ||
error == EINTR || error == EWOULDBLOCK))