lkml.org 
[lkml]   [2017]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 16/21] x86/intel_rdt/cqm: Add mount,umount support


On Sun, 2 Jul 2017, Thomas Gleixner wrote:

> On Mon, 26 Jun 2017, Vikas Shivappa wrote:
>>
>> list_for_each_entry_safe(rdtgrp, tmp, &rdt_all_groups, rdtgroup_list) {
>> + /* Free any child rmids */
>> + llist = &rdtgrp->crdtgrp_list;
>> + list_for_each_entry_safe(sentry, stmp, llist, crdtgrp_list) {
>> + free_rmid(sentry->rmid);
>> + list_del(&sentry->crdtgrp_list);
>> + kfree(sentry);
>> + }
>
> I'm pretty sure, that I've seen exactly this code sequence already. Please
> create a helper instead of copying stuff over and over.

Thats right, during rmdir_ctrl_mon which deletes all its child mon groups. Will
fix.

Thanks,
Vikas
>
> Thanks,
>
> tglx
>

\
 
 \ /
  Last update: 2017-07-06 23:57    [W:0.147 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site