Tejun Heo 4d3ca89bdd sched_ext: Refactor consume_remote_task()
The tricky p->scx.holding_cpu handling was split across
consume_remote_task() body and move_task_to_local_dsq(). Refactor such that:

- All the tricky part is now in the new unlink_dsq_and_lock_src_rq() with
  consolidated documentation.

- move_task_to_local_dsq() now implements straightforward task migration
  making it easier to use in other places.

- dispatch_to_local_dsq() is another user move_task_to_local_dsq(). The
  usage is updated accordingly. This makes the local and remote cases more
  symmetric.

No functional changes intended.

v2: s/task_rq/src_rq/ for consistency.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David Vernet <void@manifault.com>
2024-09-09 13:42:47 -10:00
..
2024-05-27 17:00:21 +02:00
2024-05-27 17:00:21 +02:00
2024-09-04 10:24:59 -10:00
2020-10-29 11:00:30 +01:00
2024-09-03 15:26:32 +02:00
2024-09-04 10:24:59 -10:00
2024-05-27 17:00:21 +02:00
2024-05-27 17:00:21 +02:00
2024-09-03 15:26:32 +02:00
2024-09-04 10:24:59 -10:00
2024-09-03 15:26:32 +02:00
2024-07-29 12:22:36 +02:00
2024-05-27 17:00:21 +02:00
2023-10-18 14:34:18 -07:00