RE: [PATCH] x86/resctrl: avoid compiler optimization in __resctrl_sched_in

From: Luck, Tony
Date: Fri Mar 03 2023 - 18:17:29 EST


> However in the __switch_to() routine, the current point is changed. If the
> compiler optimizes away the reload, then the resctrl_sched_in will look
> at the previous task instead of the new current task. This explains why we
> were not seeing the limit enforced on the benchmark.

Are there any other uses of "current" during context switch that might
be affected by this?

-Tony