Just like dofilewrite(), call bwillwrite before fo_write.
This commit is contained in:
parent
0fbdbd5068
commit
6d53aa6297
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154893
@ -763,6 +763,8 @@ aio_process(struct aiocblist *aiocbe)
|
||||
auio.uio_rw = UIO_READ;
|
||||
error = fo_read(fp, &auio, fp->f_cred, FOF_OFFSET, td);
|
||||
} else {
|
||||
if (fp->f_type == DTYPE_VNODE)
|
||||
bwillwrite();
|
||||
auio.uio_rw = UIO_WRITE;
|
||||
error = fo_write(fp, &auio, fp->f_cred, FOF_OFFSET, td);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user