1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00

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.
This commit is contained in:
Alan Cox 2002-02-12 17:40:41 +00:00
parent b6024ea8ed
commit 9fbd7ccf00
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90576

View File

@ -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--;