RTEMS | Draft: posix/aio: Implemented aio_suspend() (!275)
Alessandro Nardin (@AlessandroNardin)
gitlab at rtems.org
Mon Nov 4 20:21:14 UTC 2024
Alessandro Nardin commented on a discussion on cpukit/posix/src/aio_suspend.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114329
> + current = (rtems_aio_request *) node;
> +
> + while ( !rtems_chain_is_tail( fd_chain, node ) && current->aiocbp != list[i] ) {
> + node = rtems_chain_next( node );
> + current = (rtems_aio_request *) node;
> + }
> +
> + if ( !rtems_chain_is_tail( fd_chain, node ) ){
> + if ( current->suspendcbp == NULL ) {
> + current->suspendcbp = suspendcbp;
> + }
> + suspendcbp->requests_left++;
> + }
> +
> + //REQUEST NOT PRESENT
> + continue;
I removed the `continue` around 144, the one on 122 needs to be there to avoid the second call to rtems_aio_search_fd.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114329
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241104/17212e7f/attachment-0001.htm>
More information about the bugs
mailing list