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:
likewhatevs 2024-10-21 14:52:07 +00:00 committed by GitHub
commit 303c6d09a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;