From 9fbd7ccf00c9465d63c20139dcd61874aa1e1967 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 12 Feb 2002 17:40:41 +0000 Subject: 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. --- sys/kern/vfs_aio.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/kern/vfs_aio.c') diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index f5abfd54582a..3acdf2b606c0 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--; -- cgit v1.2.3