Skip to content
Commit 60564acb authored by Tejun Heo's avatar Tejun Heo
Browse files

sched, sched_ext: Simplify dl_prio() case handling in sched_fork()



sched_fork() returns with -EAGAIN if dl_prio(@p). a7a9fc54 ("sched_ext:
Add boilerplate for extensible scheduler class") added scx_pre_fork() call
before it and then scx_cancel_fork() on the exit path. This is silly as the
dl_prio() block can just be moved above the scx_pre_fork() call.

Move the dl_prio() block above the scx_pre_fork() call and remove the now
unnecessary scx_cancel_fork() invocation.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Suggested-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: David Vernet <void@manifault.com>
parent 6203ef73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment