Gregory Nutt 于2023年4月23日周日 04:24写道:
> I am not sure what this mean. But if you mean calling
> enter_critical_secion() in sched_lock(), then it is a very bad idea You
> should not do that. enter_critical_section() disables interrupts on all
> CPUs and this must never happen when disabling preem
Thank you for your reply and providing additional information.
Based on your suggestion, I believe a reasonable solution about
sched_lock should be step by step.
1 Add sched_lock()'s ability to the enter_critical_section()
2 Correct the incorrect usage of sched_lock, since many places
sched_lock a