GUIDINGLI commented on code in PR #17955:
URL: https://github.com/apache/nuttx/pull/17955#discussion_r2703419342


##########
sched/addrenv/addrenv.c:
##########
@@ -190,7 +191,7 @@ int addrenv_switch(FAR struct tcb_s *tcb)
       g_addrenv[cpu] = next;
     }
 
-  leave_critical_section(flags);
+  spin_unlock_irqrestore(&g_addrenv_lock, flags);

Review Comment:
   the line 186 will call work_queue, so here should use no_preempt ?



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