Re: [PATCH 1/2] x86/intel_rdt: Check monitor group vs control group membership earlier

2020-11-20 Thread Valentin Schneider
Hi James, On 20/11/20 14:53, James Morse wrote: > Hi Valentin, > > On 18/11/2020 18:00, Valentin Schneider wrote: >> A task can only be moved between monitor groups if both groups belong to >> the same control group. This is checked fairly late however: by that time >> we already have appended

Re: [PATCH 1/2] x86/intel_rdt: Check monitor group vs control group membership earlier

2020-11-20 Thread James Morse
Hi Valentin, On 18/11/2020 18:00, Valentin Schneider wrote: > A task can only be moved between monitor groups if both groups belong to > the same control group. This is checked fairly late however: by that time > we already have appended a task_work() callback. (is that a problem? It's needed to

[PATCH 1/2] x86/intel_rdt: Check monitor group vs control group membership earlier

2020-11-18 Thread Valentin Schneider
A task can only be moved between monitor groups if both groups belong to the same control group. This is checked fairly late however: by that time we already have appended a task_work() callback. Check the validity of the move before getting anywhere near task_work callbacks. Signed-off-by: