only call bwillwrite() to stall on IO when dealing with VNODEs otherwise

we will stall on non-disk IO for things like fifos and sockets
This commit is contained in:
Alfred Perlstein 2000-11-30 20:23:14 +00:00
parent e60877b3ae
commit c6ab5768aa

View File

@ -403,7 +403,8 @@ dofilewrite(p, fp, fd, buf, nbyte, offset, flags)
}
#endif
cnt = nbyte;
bwillwrite();
if (fp->f_type == DTYPE_VNODE)
bwillwrite();
if ((error = fo_write(fp, &auio, fp->f_cred, flags, p))) {
if (auio.uio_resid != cnt && (error == ERESTART ||
error == EINTR || error == EWOULDBLOCK))