Skip to content

Commit 7ed8df0

Browse files
committed
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>
1 parent 4ba54a6 commit 7ed8df0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

kernel/sched/ext.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3659,6 +3659,7 @@ static __printf(1, 2) bool handle_lockup(const char *fmt, ...)
36593659
{
36603660
struct scx_sched *sch;
36613661
va_list args;
3662+
bool ret;
36623663

36633664
guard(rcu)();
36643665

@@ -3670,9 +3671,9 @@ static __printf(1, 2) bool handle_lockup(const char *fmt, ...)
36703671
case SCX_ENABLING:
36713672
case SCX_ENABLED:
36723673
va_start(args, fmt);
3673-
scx_verror(sch, fmt, args);
3674+
ret = scx_verror(sch, fmt, args);
36743675
va_end(args);
3675-
return true;
3676+
return ret;
36763677
default:
36773678
return false;
36783679
}

0 commit comments

Comments
 (0)