mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Only call bwillwrite() for vnodes. Do not penalize devices or pipes.
This commit is contained in:
parent
15f43fcb0b
commit
a41ce5d30b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69733
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue