xiaoxiang781216 commented on code in PR #11140:
URL: https://github.com/apache/nuttx/pull/11140#discussion_r1385211403


##########
fs/inode/fs_files.c:
##########
@@ -105,9 +106,16 @@ static int files_extend(FAR struct filelist *list, size_t 
row)
     }
   while (++i < row);
 
+  flags = enter_critical_section();

Review Comment:
   the sequence to hold the critical section and fl_lock is difference from 
fs_getfilep, the deadlock will happen on SMP machine.



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