From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasily Averin Subject: Re: [PATCH v3 16/16] memcg: enable accounting for ldt_struct objects Date: Fri, 23 Apr 2021 06:13:30 +0300 Message-ID: <29fe6b29-d56a-6ea1-2fe7-2b015f6b74ef@virtuozzo.com> References: <94dd36cb-3abb-53fc-0f23-26c02094ddf4@virtuozzo.com> <20210422122615.GA7021@zn.tnic> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Content-Type:MIME-Version:Date:Message-ID:From: Subject; bh=0NvUuvrWo3QAz8EIqcQBZaREE776KfZc12xPpNwjQWw=; b=g1poiREG0JAGILOf7 +I7E+w+lXdutXm4LvYN63DqRAH5nnBD/yBz74tbY2XMuXHlgWZ6Y7U/YJ+YkhBMuoAtVjOFdpNECS zO0nzNi7numBF0yFvG6ATil3JZCklXb6HcgcDpZ2CXeiFvvOQUjNJQqgKzPprMVfIVCCWw4emAZxc =; In-Reply-To: <20210422122615.GA7021-Jj63ApZU6fQ@public.gmane.org> Content-Language: en-US List-ID: Content-Type: text/plain; charset="us-ascii" To: Borislav Petkov Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Shakeel Butt , Johannes Weiner , Vladimir Davydov , Roman Gushchin , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Michal Hocko On 4/22/21 3:26 PM, Borislav Petkov wrote: > On Thu, Apr 22, 2021 at 01:38:01PM +0300, Vasily Averin wrote: > > You have forgotten to Cc LKML on your submission. I think it's OK, patch set is addressed to cgroups subsystem amiling list. Am I missed something and such patches should be sent to LKML anyway? >> @@ -168,9 +168,10 @@ static struct ldt_struct *alloc_ldt_struct(unsigned int num_entries) >> * than PAGE_SIZE. >> */ >> if (alloc_size > PAGE_SIZE) >> - new_ldt->entries = vzalloc(alloc_size); >> + new_ldt->entries = __vmalloc(alloc_size, >> + GFP_KERNEL_ACCOUNT | __GFP_ZERO); > > You don't have to break that line - just let it stick out. Hmm. I missed that allowed line limit was increased up to 100 bytes, Thank you, I will fix it in next patch version.