Re: [PATCH 04/10] x86/resctrl: use container_of() in delayed_work handlers

From: Reinette Chatre
Date: Mon Mar 16 2020 - 14:13:44 EST


Hi James,

On 2/14/2020 10:23 AM, James Morse wrote:
> mbm_handle_overflow() and cqm_handle_limbo() are both provided with
> the domain's work_struct when called, but use get_domain_from_cpu()
> to find the domain, along with the appropriate error handling.
>
> container_of() saves some list walking and bitmap testing, use that
> instead.
>
> Signed-off-by: James Morse <james.morse@xxxxxxx>
> ---

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Thank you

Reinette