Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3951766pxf; Tue, 16 Mar 2021 01:46:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSFH4xZvQoPyR3jUnwDN/bFJ4/Cf7xhPGYfrlA1IsVxHsZaHHOP61lqG5eBhxwhIkR73oV X-Received: by 2002:a17:907:2093:: with SMTP id pv19mr28643299ejb.134.1615884369291; Tue, 16 Mar 2021 01:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615884369; cv=none; d=google.com; s=arc-20160816; b=rVAtKESBtM3yRpNXuOzKGNeTNKAk6tLF/PyIq14y37MudldQgM0UoV0bzFfGbseq8l bOfMJfG76aKIbf+cwoyab0idA9ajyX+RECc+SrXIyFTLs9Jv33PAUWMwEzTQ7vJCdCuv vBFqv2uhqOrjxaSkVWqDBOSt1uY0BKQBGN1xcgwfn2kK2dOJ/A9rab2I+4RkGTMv853R p3q2FcHvjO1bPwmY/Xy5VsUkTU8oqBRsnNluZERbXC+BPuK/UiV4GYZIzPLpF5eDT15k 38xlaNT3d/tUGt0KdtfNiQqhNo81i2JXK3l/UBXpT9us8042Zi5t7CImAEzEyMD5HqTN UxAA== 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=4WMa4KM9fFev9zFfsGZL1hiGSj5b5g6V/60hVlEG9mE=; b=vpSZ+DvME/Yc/LvzLPydx/sUS/lxZV+oeYFAXEz50RYXPRR7l8IOfjS6tw5YrbVmKK uXnhIHreEaJ80ZyYc1+ksgoIpcWn2Qc2YFJDsbsAh68Ag3QbNh5gyiLlPwGZMzVboXFb JM7cFQfCx+2V+dU/gb13KN2fHuImJD44LRIEzdaBGLAKt873gpqYulaT6ySlwBCKn3Ev 6mTRNawBx7XfAihlay4mZez/5jji6AIce+7SvNSxeyFBJd2ZOakmckDsAMQI0wz4R8nZ 3ChoSK2GX+zRsV3kVsvptWur+x4lZrJSfn86PrRiXk9zc5bP/5ufYNaxicZiJG4RjQnh j4Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kAcbsz0z; 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 n16si13341103ejr.507.2021.03.16.01.45.46; Tue, 16 Mar 2021 01:46:09 -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=kAcbsz0z; 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 S230228AbhCPG20 (ORCPT + 99 others); Tue, 16 Mar 2021 02:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231162AbhCPG2U (ORCPT ); Tue, 16 Mar 2021 02:28:20 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE7B6C06174A for ; Mon, 15 Mar 2021 23:28:19 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id j6so16455204plx.6 for ; Mon, 15 Mar 2021 23:28:19 -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=4WMa4KM9fFev9zFfsGZL1hiGSj5b5g6V/60hVlEG9mE=; b=kAcbsz0zpfOoY1eq9SS2Tf5iLTvNd1+VONP1B0IXfqyjIamQ/j4B1AZIk/Xej3gtPO /BIJKwsMq09EtFF7rSx60NCz32pq4F0iifIm3ZnTszJ8+Cy3SC2zDrosJPDUfBgiRw8J WpHLksEvtnHLRgydskPl8+p21gRkN5lpSngr9qTO7Q67KinGKssJ587CCWB7ML6nMOgG WWUtoUx5a3pcObz5xEiO2hZ+De9kS5PVLrzFUU+crJuLFukr7fwGJFKRLugYMJrfpR1W hsEyw9ft7EZKEfo/EfK5YzaCP8Ub44Y9wBc5bjBOgUkNshjVw2aRLRBYfanaGFjrEYd7 4B7A== 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=4WMa4KM9fFev9zFfsGZL1hiGSj5b5g6V/60hVlEG9mE=; b=iEgD4AipahGeAysgF9yKJahaYJUGpikLDZndm8wWuBNY6C8p5jgkb4qVnq6bvARqiz GUYyRmSyGYb7+TCDvKjGcschTDryYBNS7H/55yuDIn466GpKXNp0kIUanQCU+0hoQ04C 092x4KIdpDHv+snU7hEqyIAO+inIp2JaUzzgHEBHgYkZT4PJIiraH5xGTeS87rvBXpBl cxlqKycwu308R774CWnebnUa5XntK4ms03x08W3zFcEzAPqNozazy+L/5yA7D+IillU8 bR6Lc3nbYACVS3q34TnV/XPVVaFLLTH1dLUyk147LVPBF6ly4TOBUXfNeRRZ1wZ8XlFc sjrw== X-Gm-Message-State: AOAM530Ztvexy+a2PuNutSq8uDg7bmR1rgE0JhKCshk9gOf2UWrFFV9X OtozS7F5m54Bh7Qb8MzdY5GZxBH8XLU7ZXSJzC++qg== X-Received: by 2002:a17:90a:ce0d:: with SMTP id f13mr3175085pju.85.1615876099037; Mon, 15 Mar 2021 23:28:19 -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:28:08 -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 11:22 PM Arjun Roy wrote: > > 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 Another seeming anomaly - the patch sent out passes scripts/checkpatch.pl but netdev/checkpatch finds plenty of actionable fixes here: https://patchwork.kernel.org/project/netdevbpf/patch/20210316041645.144249-1-arjunroy.kdev@gmail.com/ Is netdev using some other automated checker instead of scripts/checkpatch.pl? -Arjun