GUIDINGLI commented on PR #11841:
URL: https://github.com/apache/nuttx/pull/11841#issuecomment-1981083039

   > @GUIDINGLI I liked it removed two nested while()s with a single for() and 
it seems to simplify and improve performance. I'm afraid of the impacts, did 
you test using ostest and more extensive testing? Also since Tiago noticed the 
stack usage impact caused by #11777 could you confirm this modification will 
not increase code and/or stack usage too much?
   
   @acassis 
   The original code also has two nested while()s, and I don't think it will 
take more stack usage then the previous.
   And this PR's purpose is enhance the safety, because:
   file_allocate_from_tcb() hasn't fully protected by spin_lock_irqsave().
   


-- 
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]

Reply via email to