xiaoxiang781216 commented on PR #7131:
URL: https://github.com/apache/incubator-nuttx/pull/7131#issuecomment-1252289466

   > Do we have good test coverage for this change? I see that many places did 
not check `fd->sem` count before posting, but now in common function it is 
always checked. The impact seems to be quite high from the bird eye view.
   
   The check is intent: it is unnecessary to post semaphore more than once 
because there is one and only one thread is waiting for it:
   https://github.com/apache/incubator-nuttx/blob/master/fs/vfs/fs_poll.c#L423
   you can see sem is a local variable defined at line 365.


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to