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

This commit is contained in:
Matthew Dillon 2000-12-07 23:45:57 +00:00
parent 15f43fcb0b
commit a41ce5d30b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69733

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