mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-30 22:50:23 +00:00
Merge pull request #824 from likewhatevs/layered-exit-task-no-missing-ctx
scx_layered: fix exit_task ctx lookup err
This commit is contained in:
commit
303c6d09a0
@ -1952,6 +1952,10 @@ void BPF_STRUCT_OPS(layered_exit_task, struct task_struct *p,
|
||||
struct cpu_ctx *cctx;
|
||||
struct task_ctx *tctx;
|
||||
|
||||
if(args->cancelled){
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(cctx = lookup_cpu_ctx(-1)) || !(tctx = lookup_task_ctx(p)))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user