Alfred Perlstein wrote: > > ok: > > at about line 498 in vfs_aio.c: > > aiocbn = TAILQ_NEXT(aiocbe, plist); > fp = fdp->fd_ofiles[aiocbe->uaiocb.aio_fildes]; > > /* > * Under some circumstances, the aio_fildes and the file > * structure don't match. This would leave aiocbe's in the > * TAILQ associated with the socket and cause a panic later. > * > * Detect and fix. > */ > if ((fp == NULL) || (fp != aiocbe->fd_file)) > fp = aiocbe->fd_file; > > So, basically if fp is NULL or not fp != aiocbe->fd_file then it's > set to aiocbe->fd_file, doesn't that mean it should just be: > > fp = aiocbe->fd_file; >
I can't explain this bit of weirdness. It existed in the original commit that added support for AIO on sockets. Alan To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message