ligd
0a88799bab
sched: fix task_delete crash in SMP case
...
A testcase as following:
child_task()
{
sleep(3);
}
main_task()
{
while (1)
{
ret = task_create("child_task", child_task, );
sleep(1);
task_delete(ret);
}
}
Root casuse:
task_delete hasn's cover the condition that the deleted-task
is justing running on the other CPU.
Fix:
Let the nxsched_remove_readytorun() do the real work
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-18 14:11:18 +09:00
..
2022-12-22 20:16:11 +08:00
2022-09-28 18:08:37 +08:00
2022-12-15 09:44:32 +08:00
2022-12-15 09:44:32 +08:00
2022-10-11 00:01:35 +02:00
2022-08-18 22:11:29 +03:00
2022-08-18 22:11:29 +03:00
2022-08-18 22:11:29 +03:00
2022-10-31 17:53:08 +09:00
2022-07-22 10:15:06 +03:00
2021-10-16 06:19:17 -03:00
2021-07-02 10:33:34 -05:00
2021-06-03 08:36:03 -07:00
2023-01-04 00:21:18 +02:00
2022-10-31 17:53:08 +09:00
2022-08-31 08:50:57 +09:00
2022-12-15 09:44:32 +08:00
2022-09-30 17:54:56 +02:00
2022-08-30 09:42:24 +02:00
2022-12-15 20:28:52 +08:00
2022-09-28 18:08:37 +08:00
2023-01-18 14:11:18 +09:00
2022-10-03 15:14:24 -03:00
2022-11-22 15:29:00 +09:00
2022-09-17 17:37:47 +09:00
2022-11-22 22:59:08 +08:00
2022-12-15 09:44:32 +08:00
2022-11-17 17:58:08 +08:00
2022-05-19 23:23:01 +03:00
2022-11-22 22:59:08 +08:00
2022-10-16 12:43:31 +08:00
2022-10-12 11:55:46 +08:00
2022-12-16 21:29:57 +08:00
2022-07-08 02:15:54 +08:00
2022-10-28 21:19:46 +02:00
2022-10-28 21:19:46 +02:00
2022-09-30 17:54:56 +02:00
2022-11-22 15:29:00 +09:00