Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp26597rwl; Thu, 23 Mar 2023 12:11:30 -0700 (PDT) X-Google-Smtp-Source: AKy350b2J0oln/ZS+Z+KQxq0sDbwwhJnsu17Bdh6ekm9R0psKmI32z8jc3VSaaDaiM6Wbs4AptNa X-Received: by 2002:a17:906:55cd:b0:933:1134:be1e with SMTP id z13-20020a17090655cd00b009331134be1emr80415ejp.53.1679598690412; Thu, 23 Mar 2023 12:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679598690; cv=none; d=google.com; s=arc-20160816; b=l8eicYcdH27MIN4SeZEPzNB6bpI8vkpsPVGKr7OwTE2KVBn0yXet9OXP2xpMvdtlQ4 /6ByQB11XfHljilUTMb5tBCrikJcBkR0LSDu3cYSMsq5FsE+xlbC14+3CgdtpYBUjFw5 h0YJvtBw8Xbq/m20xRjx6MimiE4MtDcyw/n2+vitDUiKzBHuwJWCt+RLF/X9fHaEVjX4 pwSF7gyUJ38XXrf+Qp/Lc2nwS9FE67+TFxWLXV4mSxWppqkzCKOZ97N2uZZ45bGigfFt gxMrl6oG83URQuznUJAzi4mGyXEZZIav9BTDGIXFrne3HLBYae/Zaj1q8WUI6sMa/ybC nuGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vLtQVw9Q3r/EIfGHaHQqJXqtgGhueRqlggc/xqxY+5U=; b=XB/1IxuHhh7eXWBGp2Q3+W59PamIT3JzBqDyIKDnktct+qqV5D2eKO35b5KmHP7GnC 1ukeIIH0Bg1GwT7V54SD8mc59ozIZbRs1jc6q7ov18OO7Dza0GZPDdv9+/kpFLs5VR+n MrMw4anNVGvNEDl7vFzgoU7e8m5/+uX6E3Q6Yq8eK2gUvB2Nz8tVyRr+hO3L2vZwaZ39 fsgau1xl4UBveB4IQQ0H2JQd4pd3LHAIRVI74yOumRLD/9i7tdg8Ug/CXrqYXPbEcmxT TNFh+W4kDVo+jPoeG0eMJfzqG4HTxbrV1InRar0FrzN3Hgrenih0/EGeeXnxxbaUbdlC ASWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iWmN5qdQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wd8-20020a170907d60800b00932e5d0cc46si16960486ejc.930.2023.03.23.12.11.06; Thu, 23 Mar 2023 12:11:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iWmN5qdQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230495AbjCWTKR (ORCPT + 99 others); Thu, 23 Mar 2023 15:10:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231827AbjCWTKE (ORCPT ); Thu, 23 Mar 2023 15:10:04 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AA1B14494 for ; Thu, 23 Mar 2023 12:09:49 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id s67so9268103ybi.5 for ; Thu, 23 Mar 2023 12:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679598585; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vLtQVw9Q3r/EIfGHaHQqJXqtgGhueRqlggc/xqxY+5U=; b=iWmN5qdQNSjpgISH3j2kib5cc+h8AoBaK9c2AaVVVURUW5rI9o8n06FvmV1M+bBFfX YNubq65NBM6w9TNZeohFGxGQHBSYpmJ2MVCGqXlkjI0pG66JFFF6zyIvXaCtVFAsMNFh hXEcIALahsRpm5ULADGvB6dWEK8Cco4UeMk/PeV198/yaHKWNMbjOkpRw/jOeaVEUa88 WYew6Gts30zeIuE6WLRNasfDpPaC4wq9Q+TgniIJZLVp7q+T9A9NqwNBf4mhube6dHtB lKvNpdpZCmdXI0XAsx+tbsEVIpm8bgaFMld59t1NK22AG0oMOtTQgmguJ9Zy1dAlKVSJ vknQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679598585; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vLtQVw9Q3r/EIfGHaHQqJXqtgGhueRqlggc/xqxY+5U=; b=CZ0d3Ii1UZFr8v0edoekumU5ijC/5uyT+0Rtsm4tMWx/sBmyKWGD9kQbQPVtTs/jZS R3w+UafTjzEOQiSzf7w5+NO2cv9EChqlkOw/hc1iLM9AKXw08ayjxwxGOA3dd1FwM8xw MgltAgBPalgTTY1r0KZQlzVyUmDeiD3KozBDUW4YSWNbM/5nr94Kkqk9AGaH6irQuNRS ei9vqMC/+TqahyCxmycVyFDflz8vDkTYj++T+rdbJFT71HPMrfK9BDo6Rowj0KDd0SSI L6tA/0bZy8Kdl29rXV3VC1u96ZCsTq6S9FxcacnR7XRIEAn/lLCVjvtZAPSsE9NS1NE3 W2og== X-Gm-Message-State: AAQBX9dtyXNACu7DMt5Phs/C7WYCz05Q6A2Ked7xJUt62WWRhmwZON1a rgrKyBwIKijNgoyP5EdW4emRdrgmmQSkNFfkGkBu+g== X-Received: by 2002:a25:a28f:0:b0:a99:de9d:d504 with SMTP id c15-20020a25a28f000000b00a99de9dd504mr2809088ybi.12.1679598584842; Thu, 23 Mar 2023 12:09:44 -0700 (PDT) MIME-Version: 1.0 References: <20230323040037.2389095-1-yosryahmed@google.com> <20230323040037.2389095-2-yosryahmed@google.com> In-Reply-To: From: Shakeel Butt Date: Thu, 23 Mar 2023 12:09:33 -0700 Message-ID: Subject: Re: [RFC PATCH 1/7] cgroup: rstat: only disable interrupts for the percpu lock To: Yosry Ahmed Cc: Tejun Heo , Josef Bacik , Jens Axboe , Zefan Li , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Andrew Morton , Vasily Averin , cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-15.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 23, 2023 at 9:52=E2=80=AFAM Yosry Ahmed = wrote: > [...] > > Sure, I can do that in the next version. I will include a patch that > adds an in_task() check to mem_cgroup_usage() before this one. Since > BUG_ON() is discouraged and VM_BUG_ON() is mm specific, I guess we are > left with WARN_ON_ONCE() for the rstat core code, right? > > Thanks Shakeel. Any other thoughts I should address for the next version? This is all for now (at least for this patch).