]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Update p->scx.disallow warning in scx_init_task()
authorTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:02 +0000 (07:58 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:02 +0000 (07:58 -1000)
commit0454a604b98a9bf301e82860cd216ec4ac563668
tree6b6bcc62016733b3e0035b1cd505082b610611bd
parent19d0e98c20f079352f7c9098338520e09086e5ab
sched_ext: Update p->scx.disallow warning in scx_init_task()

- Always trigger the warning if p->scx.disallow is set for fork inits. There
  is no reason to set it during forks.

- Flip the positions of if/else arms to ease adding error conditions.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
kernel/sched/ext.c