Only call bwillwrite() for vnodes. Do not penalize devices or pipes.

This commit is contained in:
dillon 2000-12-07 23:45:57 +00:00
parent a028ff4331
commit 165470e60a

View File

@ -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))