]> Gentwo Git Trees - linux/.git/commit
sched_ext: Minor cleanups to scx_task_iter
authorTejun Heo <tj@kernel.org>
Tue, 4 Nov 2025 21:42:55 +0000 (11:42 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 4 Nov 2025 21:46:25 +0000 (11:46 -1000)
commitd723f36e014d296d668b577c0c69cc37be75e6d2
tree0245d93d22c4b4cf56f5814592c2bd9d5c232afc
parent023af03caed8c1c7b863b912b661bb76a8c13c24
sched_ext: Minor cleanups to scx_task_iter

- Use memset() in scx_task_iter_start() instead of zeroing fields individually.

- In scx_task_iter_next(), move __scx_task_iter_maybe_relock() after the batch
  check which is simpler.

- Update comment to reflect that tasks are removed from scx_tasks when dead
  (commit 7900aa699c34 ("sched_ext: Fix cgroup exit ordering by moving
  sched_ext_free() to finish_task_switch()")).

No functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c