From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163093AbcG1FyG (ORCPT ); Thu, 28 Jul 2016 01:54:06 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:32988 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162965AbcG1Fxy (ORCPT ); Thu, 28 Jul 2016 01:53:54 -0400 MIME-Version: 1.0 In-Reply-To: <1468371785-53231-20-git-send-email-fenghua.yu@intel.com> References: <1468371785-53231-1-git-send-email-fenghua.yu@intel.com> <1468371785-53231-20-git-send-email-fenghua.yu@intel.com> From: Nilay Vaish Date: Thu, 28 Jul 2016 00:53:13 -0500 Message-ID: Subject: Re: [PATCH 19/32] sched.h: Add rg_list and rdtgroup in task_struct To: Fenghua Yu Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Tony Luck , Tejun Heo , Borislav Petkov , Stephane Eranian , Peter Zijlstra , Marcelo Tosatti , David Carrillo-Cisneros , Ravi V Shankar , Vikas Shivappa , Sai Prakhya , linux-kernel , x86 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12 July 2016 at 20:02, Fenghua Yu wrote: > From: Fenghua Yu > > rg_list is linked list to connect to other tasks in a rdtgroup. > > The point of rdtgroup allows the task to access its own rdtgroup directly. > > Signed-off-by: Fenghua Yu > Reviewed-by: Tony Luck > --- > include/linux/sched.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/linux/sched.h b/include/linux/sched.h > index 253538f..55adf17 100644 > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -1761,6 +1761,10 @@ struct task_struct { > /* cg_list protected by css_set_lock and tsk->alloc_lock */ > struct list_head cg_list; > #endif > +#ifdef CONFIG_INTEL_RDT > + struct list_head rg_list; > + struct rdtgroup *rdtgroup; > +#endif > #ifdef CONFIG_FUTEX > struct robust_list_head __user *robust_list; > #ifdef CONFIG_COMPAT > -- > 2.5.0 > I think this patch should be merged with patch 22/32 since struct rdtgroup 's definition appears in the patch 22/32. I do not recall seeing any forward declaration either. -- Nilay