Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp754184pxy; Wed, 5 May 2021 13:04:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1i/inf4uMOm2YaE1K4SFD7BYykt1t3g4t65Mca/cHafXPy2itA475SUBqtgUSjTaLI22X X-Received: by 2002:a17:90a:fd92:: with SMTP id cx18mr292856pjb.209.1620245074528; Wed, 05 May 2021 13:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620245074; cv=none; d=google.com; s=arc-20160816; b=UIEy/nfhHEHQmbOnhzcak/n4+Vxi7mRnclLsMSIaTpmDmFZKr61kks9Qo6HbKyQX7d Fg9sKkR2l6WMVBgMs8DaZGOYJpdHcrNQWhYVQm8JKxvtCZkCFO/Iis+mxKaUiM8kxZf9 /gI6xhoZgJy8agL+5CiVOWLhDEilAL+DA0FJYnnWts3/YGguL0uwc0ID6Z/5rV+Erfv/ 7oXaDE3uCabBuh5KH0GzfveHCdkW/D46BBLEMJwMi6vF6xKV8zbd2aNq/fDMZhZNAyz3 vkD7BXRmVvHY1gojBEpnTrpSvKvUBh1eyNnlJoQGR12ti7fnpoIwPlxkHnMgi1TPuAzL mFxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KKsuEFeD+gJYSLJ7ekg4hfVqsnbJkGKmSnFbVOc/YJ0=; b=GBFlkX11gzttVvRTqwuf0lXH1P3k2Im9IH9ldCniOo12zSGyK7ukJVLEJjrssWH15r hiW8gSzD0+oCczJkOwASLaX09WkB4drFVJnCkslYbffZjPDS/gXxEzIafNr7gk3sCqZC mb0YmOgHNulKklvVr50G5fFj6ytnRzHgXG+oyEOQ2gKgMCdiavL/xnFguk5BKQf9e1Dq s62VFNXNmRd+5y6nV5E04d/VFQAo5PbS0oQKf5+p3mahCe9kZRkDs+TC/TCIxNyGl/ke /+gY56zAzbZFWnPcXIs3lBWfGEJcG9PK6UrsUF6nqpoQlawz7jwpOIFHlHR22FrjQ7rD aHjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pGurct48; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si220577pjz.49.2021.05.05.13.04.20; Wed, 05 May 2021 13:04:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pGurct48; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233812AbhEEQK1 (ORCPT + 99 others); Wed, 5 May 2021 12:10:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233762AbhEEQKY (ORCPT ); Wed, 5 May 2021 12:10:24 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28876C06174A for ; Wed, 5 May 2021 09:09:27 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id h4so3401939lfv.0 for ; Wed, 05 May 2021 09:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KKsuEFeD+gJYSLJ7ekg4hfVqsnbJkGKmSnFbVOc/YJ0=; b=pGurct48b4cD8PojrnEnwDogn490UJ9vqixvhsKhgQxNctHN1tmUuM3UD9+ybdnCIY UxaEbOhE28qlVJbcYa48VZQspRkpa6R+BdyW29LwM/CJLY+97Y+uD6Cp5fdO4dnPj2rX A0mfjYE/DSuuRi1bqPpZG1hrFxCO7tuqYHZDpNQeXKfe+E+ImMxuIh9hdW3twa5HeDV6 G2NJHXEeRLfd4fcv1JDhs3H8kWGJrtpuq9tLRg6pUf6vAquDmBcDLuBANRZ1u8FO36ON PDLNDLz8lbu0hary8tnz00mf3UhHAdg/2teGSWUTWOyMpHy/jr1tEsiXr/46vVNPzP75 9Xag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KKsuEFeD+gJYSLJ7ekg4hfVqsnbJkGKmSnFbVOc/YJ0=; b=sGeULVt2ZdLRE5Uwjw+iCejihmMyJ/HQWykayOWa+u6DBHYvVEYaPJkcp6cMzIz/yT aDMhpVHGDE/Bq0a8PXN4FUMsVcLVjD2pou1NqcXoujuaQBV01WL/b2xOo+zndWaqpNLn YlPZNL+qmT7ugCCChLouPj0Sl5jdgncio+7rt9bKvcH7YuNzPk/h+7pZ8h5Xz8upkMsT GEhwZ5/En90JN0Eb9sVneWAiux9MtnkOlIn/QysjaqrWeG2TwUR2/UnuN/k0eNkw/H8t PTFw2Ftai0YARKL8gPqSb0SG9esnboJ0iZw39a7KszoN7Z9943d99krwOrpkI5mC1+S1 oCqA== X-Gm-Message-State: AOAM530KamBN7CCHUFyC/2keRgCifzHNtEpo76pGAQ82mR7bYtfqWMa2 c3HsRAhHcBWM45JJ/bDjlRHWze6WxkQ7pb4vjT1J6Q== X-Received: by 2002:a05:6512:92e:: with SMTP id f14mr20767256lft.347.1620230965352; Wed, 05 May 2021 09:09:25 -0700 (PDT) MIME-Version: 1.0 References: <20210505154613.17214-1-longman@redhat.com> <20210505154613.17214-2-longman@redhat.com> In-Reply-To: <20210505154613.17214-2-longman@redhat.com> From: Shakeel Butt Date: Wed, 5 May 2021 09:09:14 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] mm: memcg/slab: Properly set up gfp flags for objcg pointer array To: Waiman Long Cc: Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Vlastimil Babka , Roman Gushchin , LKML , Cgroups , Linux MM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 5, 2021 at 8:47 AM Waiman Long wrote: > > Since the merging of the new slab memory controller in v5.9, the page > structure may store a pointer to obj_cgroup pointer array for slab pages. > Currently, only the __GFP_ACCOUNT bit is masked off. However, the array > is not readily reclaimable and doesn't need to come from the DMA buffer. > So those GFP bits should be masked off as well. > > Do the flag bit clearing at memcg_alloc_page_obj_cgroups() to make sure > that it is consistently applied no matter where it is called. > > Fixes: 286e04b8ed7a ("mm: memcg/slab: allocate obj_cgroups for non-root slab pages") > Signed-off-by: Waiman Long Reviewed-by: Shakeel Butt