Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched_ext: Make handle_lockup() propagate scx_verror() result

handle_lockup() currently calls scx_verror() but ignores its return value,
always returning true when the scheduler is enabled. Make it capture and return
the result from scx_verror(). This prepares for hardlockup handling.

Cc: Dan Schatzberg <schatzberg.dan@gmail.com>
Cc: Emil Tsalapatis <etsal@meta.com>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

Tejun Heo 7ed8df0d 4ba54a6c

+3 -2
+3 -2
kernel/sched/ext.c
··· 3659 3659 { 3660 3660 struct scx_sched *sch; 3661 3661 va_list args; 3662 + bool ret; 3662 3663 3663 3664 guard(rcu)(); 3664 3665 ··· 3671 3670 case SCX_ENABLING: 3672 3671 case SCX_ENABLED: 3673 3672 va_start(args, fmt); 3674 - scx_verror(sch, fmt, args); 3673 + ret = scx_verror(sch, fmt, args); 3675 3674 va_end(args); 3676 - return true; 3675 + return ret; 3677 3676 default: 3678 3677 return false; 3679 3678 }