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:
parent
e60877b3ae
commit
c6ab5768aa
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user