diff options
author | alc <alc@FreeBSD.org> | 2002-02-12 17:40:41 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-02-12 17:40:41 +0000 |
commit | f64c08b326147c90381bb91488d57e83e17a678b (patch) | |
tree | 9b52bcae9edfc482b90ad919715e9e83e2f02e33 | |
parent | 437a2752efb5ec7d35dd76d248ef47c0516d80d8 (diff) | |
download | FreeBSD-src-f64c08b326147c90381bb91488d57e83e17a678b.zip FreeBSD-src-f64c08b326147c90381bb91488d57e83e17a678b.tar.gz |
o Clearing p/td_retval[0] after aio_newproc() is unnecessary. (We stopped
calling rfork() to create aio threads in revision 1.46.)
o Don't recompute the FILE * when it's already stored in the kernel's AIOCB.
-rw-r--r-- | sys/kern/vfs_aio.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index f5abfd5..3acdf2b 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -1054,16 +1054,12 @@ aio_qphysio(struct proc *p, struct aiocblist *aiocbe) struct buf *bp; struct vnode *vp; struct kaioinfo *ki; - struct filedesc *fdp; struct aio_liojob *lj; - int fd; int s; int notify; cb = &aiocbe->uaiocb; - fdp = p->p_fd; - fd = cb->aio_fildes; - fp = fdp->fd_ofiles[fd]; + fp = aiocbe->fd_file; if (fp->f_type != DTYPE_VNODE) return (-1); @@ -1516,7 +1512,6 @@ retryproc: num_aio_resv_start++; if ((error = aio_newproc()) == 0) { num_aio_resv_start--; - td->td_retval[0] = 0; goto retryproc; } num_aio_resv_start--; |