Re: [RFD] resctrl: reassigning a running container's CTRL_MON group

From: Peter Newman
Date: Tue Nov 01 2022 - 11:53:32 EST


On Tue, Nov 1, 2022 at 4:23 PM Peter Newman <peternewman@xxxxxxxxxx> wrote:
> Yes it looks like the task's rq_lock would provide the necessary
> ordering. It's not feasible to ensure the IPI arrives before the target
> task migrates away, but the task would need to obtain the same lock in
> order to migrate off of its current CPU, so that alone would ensure the
> next migration would observe the updates.
>
> The difficulty is this lock is private to sched/, so I'd have to propose
> some API.

Actually it looks like I can just use task_call_func() to lock down the
task while we do our updates and decide if or where to send IPIs. That
seems easy enough.

-Peter