hujun260 commented on code in PR #16673: URL: https://github.com/apache/nuttx/pull/16673#discussion_r2185242444
########## sched/sched/sched_addreadytorun.c: ########## @@ -196,7 +196,7 @@ bool nxsched_add_readytorun(FAR struct tcb_s *btcb) * situation. */ - if (nxsched_islocked_tcb(this_task())) + if (nxsched_islocked_tcb(rtcb)) Review Comment: In SMP, list_pendingtasks is actually unnecessary. The running queue in SMP is g_assignedtasks; when encountering a sched_lock, we just need to avoid placing tasks in g_assignedtasks. -- 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