sched/task: Relocate the group ahead of the tcb to ensure the group drop logic#17578
sched/task: Relocate the group ahead of the tcb to ensure the group drop logic#17578anchao wants to merge 5 commits intoapache:masterfrom
Conversation
…ormance" This reverts commit 31e562b. Signed-off-by: chao an <anchao.archer@bytedance.com>
Simplify the code and remove different tcb Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Just remove cast Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Just remove cast Signed-off-by: anjiahao <anjiahao@xiaomi.com>
…rop logic Relocate the group ahead of the tcb to ensure that the relationship between the group and tcb remains bound throughout the task lifecycle. This eliminates the need to add excessive redundant checks to prevent erroneous release of the group. Signed-off-by: chao an <anchao.archer@bytedance.com>
|
@anchao nice work! What test did you added to validate it? Should be it included in the ostest to catch this kind of regression in the future? |
@acassis Thank you for your review. Seriously , the probability of reproducing this issue is extremely low, as it requires kernel hacking to meet the test conditions. You may refer to commit #17418 (comment) in comment master...wangzhi16:nuttx:master. I haven’t figured out a good test scheme yet. |
Hi @anchao fair enough! No problem. If you find some yet to test the issue, please include it in the ostest. |
|
Hi anchao, Let's wait this PR merged: |
I will rebase this change if #17545 merged |
Summary
Impact
N/A
Testing
test log: