pussuw commented on code in PR #14764:
URL: https://github.com/apache/nuttx/pull/14764#discussion_r1840788819
##########
mm/iob/iob_alloc_qentry.c:
##########
@@ -101,21 +137,22 @@ static FAR struct iob_qentry_s *iob_allocwait_qentry(void)
* re-enabled while we are waiting for I/O buffers to become free.
*/
- flags = enter_critical_section();
-
/* Try to get an I/O buffer chain container. If successful, the semaphore
* count will bedecremented atomically.
*/
- qentry = iob_tryalloc_qentry();
- while (ret == OK && qentry == NULL)
+ flags = spin_lock_irqsave(&g_iob_lock);
Review Comment:
ditto
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]