Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp462454pxx; Thu, 29 Oct 2020 06:49:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmdB//69jKo+a+PHARifxUaocAsj5NTZcxwtEbIF/92ZJ+6w3DAhvKV6yEeAh4vFgnI8gR X-Received: by 2002:a50:e881:: with SMTP id f1mr4128657edn.58.1603979365671; Thu, 29 Oct 2020 06:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603979365; cv=none; d=google.com; s=arc-20160816; b=Tf8wCOliKP3Vq5iJz4sbK5MpMXdFVenS5+oeSkeHPyaEfJyc7Zw3Qhng6XzPUHCY8Z 5LqyY9NLSL856jjFbwJdT9a88kXdeByKhJ4qKdvHQbwSHU5YWznCXFK1ex95UxH03h4u EdyHiSu7I3IPva7LDfWbWlN7xV86n7wDpY/tMi+1fr6CUm9FF+lZAAkD6UTBJkuwbewu Q+L6FmobOhVVCJDj36HsbPPs3JKnm6e/k8M42waoSQqn+YycfxFFdK6dpRlp5pdJTdJN JxrNQFjbtD/9l2kfXVTREVbxh2MqOFYxGBstB4rPsyFtyVZH8gTHPpNSr+13txeDRbBz 17pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lMVsDoZ2rvYhRouYTnsQqKObuVh6EX/L2Iet4zmcg+0=; b=ZWacKyXopUezvCmgGqlgFIQbllhNQWqiSaJ1SDKl59Io+QfQevFYubCL+mGZzudXwq B9sDtNNbK0O3KDToxUtJkHneENkQGe9HC2DJBRSKEKRTiWBKHEqQz4alEVvn/JSTgLBH qN2YS6/nglcQYLReG+uQKRpM9OaapEDTaVW/Aqru65cCbj+f59vmKcW0qzVjV8a7XU0/ CGUjzCQd5E1ibecA+gFsUEHgg1MMwCJKHJjjgBjomc7HjUDqPL930+CSDLj3gERRkttR K6mt1qsaVCpI/0LWbrM8w8gyDThqBIbkDu8nGDrDW6x7/oeMOfxzChxXi18c0dXDlN0N YITg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=BqZ2R2ie; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si2065328edv.46.2020.10.29.06.49.02; Thu, 29 Oct 2020 06:49:25 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=BqZ2R2ie; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727346AbgJ2Npc (ORCPT + 99 others); Thu, 29 Oct 2020 09:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727250AbgJ2Npb (ORCPT ); Thu, 29 Oct 2020 09:45:31 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04939C0613D4 for ; Thu, 29 Oct 2020 06:45:31 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id r9so3422180ioo.7 for ; Thu, 29 Oct 2020 06:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lMVsDoZ2rvYhRouYTnsQqKObuVh6EX/L2Iet4zmcg+0=; b=BqZ2R2ieXOiIyfj4R06JqpmwkZDKmSom+oB6s4vJ3gT+gZ0OND8K/gSscTX2Ax4YSL th+NpS/aAW9WU9gUbnUk6J2t8Tp6ot3gvUb+/Wqxbmh9oVvb4neSwLThNjXM4j2yFQUg Zt/qaKVHiCUkE6S2dy0ZLkpZ7hAoJZTPQ9hb2rwV67DMknJ8A1iSh8jHBADKov09dNWG wUL46gT3QRe9y0P/5t0OhMkwqxX8F/m+Py4topxcn5Ws8DywxAPZ/2FzlE6cx4EpvU/8 XPEiPhhjlKLee4syFyTA3ZhySwdIZlKRhkhJCAVIDBlBVvgErA68e84xR75aHFHvDqiv lo/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lMVsDoZ2rvYhRouYTnsQqKObuVh6EX/L2Iet4zmcg+0=; b=HhFrDacQ/Dh09PDPVLMl7Qtbvi4vZNQUtoTKhZP6Ug9VPncHBw0S+N2GAwuFDqj4gv sY5Tb8gjbE9lO6uCbtNe0PlSAJDS3zSh8O8KoWXfejnpkukvwgb4ID4UMkfEu1txjUZC lFpXWUh0fUgcfaXdR/K3xYDTxgBcfzOo1MD0IaCInDkUNKvr140TQ3wJfbDMvD2Ffjpo baJ13YsE4r+oJlSkYTCL5CTRkgDuzhJCnOoBFrib/Vvn0xTsbahQk40vEfRb25SEdJBR KICeRfoMDbY/imWrQ8rNgo14MLXhOzQWKylHcYu1CujaFbf8nlXalnWtjFxtapL+HIKm pdsg== X-Gm-Message-State: AOAM531nfq5T4bu8qm08q5KhW77BIH5EYrzSTfLXllu5ZIFCEb+vm3Ox yCoOW4Ompi7wiAyGBtSaRomW6A== X-Received: by 2002:a5d:8987:: with SMTP id m7mr3494563iol.20.1603979130469; Thu, 29 Oct 2020 06:45:30 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:536c]) by smtp.gmail.com with ESMTPSA id c13sm2352228ild.68.2020.10.29.06.45.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 06:45:29 -0700 (PDT) Date: Thu, 29 Oct 2020 09:43:46 -0400 From: Johannes Weiner To: Alex Shi Cc: akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, hughd@google.com, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, willy@infradead.org, lkp@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, shakeelb@google.com, iamjoonsoo.kim@lge.com, richard.weiyang@gmail.com, kirill@shutemov.name, alexander.duyck@gmail.com, rong.a.chen@intel.com, mhocko@suse.com, vdavydov.dev@gmail.com, shy828301@gmail.com, Michal Hocko Subject: Re: [PATCH v20 01/20] mm/memcg: warning on !memcg after readahead page charged Message-ID: <20201029134346.GB599825@cmpxchg.org> References: <1603968305-8026-1-git-send-email-alex.shi@linux.alibaba.com> <1603968305-8026-2-git-send-email-alex.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1603968305-8026-2-git-send-email-alex.shi@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 06:44:46PM +0800, Alex Shi wrote: > Add VM_WARN_ON_ONCE_PAGE() macro. > > Since readahead page is charged on memcg too, in theory we don't have to > check this exception now. Before safely remove them all, add a warning > for the unexpected !memcg. > > Signed-off-by: Alex Shi > Acked-by: Michal Hocko > Acked-by: Hugh Dickins > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Vladimir Davydov > Cc: Andrew Morton > Cc: cgroups@vger.kernel.org > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org Acked-by: Johannes Weiner