diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2000-12-07 23:45:57 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2000-12-07 23:45:57 +0000 |
commit | a41ce5d30b269b078b411f7b80e251adedaf0127 (patch) | |
tree | 698828597f4935b73fc138854c33688136d2e395 /sys/kern/sys_generic.c | |
parent | 15f43fcb0bb51a159b3d3c36e85d0f2b5202ec86 (diff) | |
download | src-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.c | 3 |
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)) |