Re: [PATCH] sched/fair: remove redundant se initialization in unthrottle_cfs_rq

From: Aaron Lu

Date: Tue Nov 11 2025 - 02:40:19 EST


Hi Linwei,

On Sat, Nov 08, 2025 at 03:38:29PM +0800, Linwei Wang wrote:
> In unthrottle_cfs_rq(), the variable 'se' is initialized at
> declaration (line 6024) but then immediately reassigned at line 6039
> after an early return check. This redundant initialization is
> wasteful, especially when the function returns early at line 6037.

This redundant initialization is addressed in commit 956dfda6a708
("sched/fair: Prevent cfs_rq from being unthrottled with zero
runtime_remaining").

Thanks.