Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3950708pxf; Tue, 16 Mar 2021 01:43:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8XO6DfOnJit3tS2wEY9LJ+quKjT6aS0D9ZzfuXJoCdsOZanjAJgHTdmmt7+thJLMDZwmu X-Received: by 2002:a17:906:5e4a:: with SMTP id b10mr28459175eju.116.1615884216233; Tue, 16 Mar 2021 01:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615884216; cv=none; d=google.com; s=arc-20160816; b=mVNYelASG0qMpmOXswSFfedOIt9HF++LpiuS9jZycmE4oadD1kcq/UJcJg3Xb2ANUO RQmHYT++FVUvWy1TRsY5p7s6mRxIPgRtzPJ4HeTKjdHmG+XZNIIfL6wltKI4YloNf694 KoclW1oZtozU1wVSXNaLE0uJCjNrbTMfNoR65vfKteY+fNXo1czdOuR3+j9UJBhcKZKm pghE+j6z2HRAIFMRf+YybtD1HQIB/WOJgBBexDk57IzhyJB5hv/T0czWeObivS9XSbD2 eClZ9yhpxbtu9nyyCJCpZvULsgp/bdlBkDfCYxmQtgSD/mKTBlrt4yCaxxb7ATdQd4WF 7gpg== 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=xHVFZ6ek9UWH6gJaYSFsmDxhb9ekTRVKDZq6Jazc5rQ=; b=MYEyUSkTNTLJqjwlVybkDqwZqqHh4t640khImUP3z+GQDeHbcr15diubM3EHsm4IP+ vlMHBA7fcpWE8czaNUgKQVs2Y85KXc936BYWZ4s5FMNInuaPacGKrIdUqxZSJbeJ0PtC XhMP8fNOQDHSQbTCLyDNxfcd2eCQsoZMUiE8MYDKvMPyMexm5cXKAwFV4VuyA2PMMTqE PgsoxJhjPz7+h3buDQjpvrH0e8nUhSwgPVgX1t7upRMOJV2tGeFmfvAUG4+AyoRHTHkn Ek2GRo9qLUiKeri1EvhYATmHg4NgylL/y9gjUsLcrOVLOcICBMGDiyTvIFQO4QP0AzCO 62ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pnrONYLd; 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 g10si13131976edp.277.2021.03.16.01.43.13; Tue, 16 Mar 2021 01:43:36 -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=pnrONYLd; 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 S230252AbhCPGXF (ORCPT + 99 others); Tue, 16 Mar 2021 02:23:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbhCPGWj (ORCPT ); Tue, 16 Mar 2021 02:22:39 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64D00C06175F for ; Mon, 15 Mar 2021 23:22:39 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id ga23-20020a17090b0397b02900c0b81bbcd4so845260pjb.0 for ; Mon, 15 Mar 2021 23:22:39 -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=xHVFZ6ek9UWH6gJaYSFsmDxhb9ekTRVKDZq6Jazc5rQ=; b=pnrONYLdoVlRUvqukdeM+bXd8Ij3mjhE5t0V3KUkfpk/yrSbJMiTCr/S7UD0odUa02 dWaR7hogUC6ysiqCkMkPEk2Rm3IVlquKQdHRqaOjcwbaGU5bYrQgZbR/QG+VhgyITwf6 e/ragJyDp+NpS773hJSNltE3XoRaFmfNc8Iq8U25yWlB4aNnetpoVFz4yl7ETuoMnP83 2M+UYJc9wZw4k2VjBiPyaeFI/Y9/7t/nEJhE31nhE3tiAMGH/f/B+TGq6ZdxRnsfEJnc y46UwmnnQfOkJuGmkcKJv5m/gRbBj8RETOssa7aTxyXocQ25FcQhbN+O8uXfxhn888eb XcQQ== 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=xHVFZ6ek9UWH6gJaYSFsmDxhb9ekTRVKDZq6Jazc5rQ=; b=pQ81eg/zXjUs8lcuMR+jqcsgZ8UL1ItE/f2EAjnPEFsyVhkEKn5gKWyJf/xv5eh+6G 6QlsOtHZbwarbOWVk4xtf912hUnLYSYSX0A0RYVKO/W5d5oJf4sHLRTHwbsGX1I80fPz a3K1FICEFwTBepxI1ewnnXjXJXtOo2wtdRsLUa364/xL8PxL58rW3wE60PGriArtXSfs 7lex4nZ4yEqtI5rJa8eem1uNnyJFQ4fDU+C4YalSoO+FvM/z+azy299o83QdxKAV0VQD R4+JTjU9SINqVV70lFaNBa9aObliVjHyAMlS6oe0I/Lj4k2ZeTfwkUOLImwKNpVOvUuK ovmA== X-Gm-Message-State: AOAM532dRekG81YuJ/B0zjHf3s1CN72OleWVh17HKURStd2Ud0z8exnD drDV+3BAJv8ZpTXXT6kAppCWgV7dg+GPZQZkznmDag== X-Received: by 2002:a17:90a:ce0d:: with SMTP id f13mr3153239pju.85.1615875758578; Mon, 15 Mar 2021 23:22:38 -0700 (PDT) MIME-Version: 1.0 References: <20210316041645.144249-1-arjunroy.kdev@gmail.com> In-Reply-To: From: Arjun Roy Date: Mon, 15 Mar 2021 23:22:27 -0700 Message-ID: Subject: Re: [mm, net-next v2] mm: net: memcg accounting for TCP rx zerocopy To: Shakeel Butt Cc: Arjun Roy , Andrew Morton , David Miller , netdev , Linux Kernel Mailing List , Cgroups , Linux MM , Eric Dumazet , Soheil Hassas Yeganeh , Jakub Kicinski , Michal Hocko , Johannes Weiner , Yang Shi , Roman Gushchin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 15, 2021 at 9:29 PM Shakeel Butt wrote: > > On Mon, Mar 15, 2021 at 9:20 PM Arjun Roy wrote: > > > [...] > > > > > > > Apologies for the spam - looks like I forgot to rebase the first time > > I sent this out. > > > > Actually, on a related note, it's not 100% clear to me whether this > > patch (which in its current form, applies to net-next) should instead > > be based on the mm branch - but the most recent (clean) checkout of mm > > fails to build for me so net-next for now. > > > > It is due to "mm: page-writeback: simplify memcg handling in > test_clear_page_writeback()" patch in the mm tree. You would need to > reintroduce the lock_page_memcg() which returns the memcg and make > __unlock_page_memcg() non-static. To clarify, Shakeel - the tag "tag: v5.12-rc2-mmots-2021-03-11-21-49" fails to build on a clean checkout, without this patch, due to a compilation failure in mm/shmem.c, for reference: https://pastebin.com/raw/12eSGdGD (and that's why I'm basing this patch off of net-next in this email). -Arjun