Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 821C7C433EF for ; Thu, 11 Nov 2021 00:30:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D18E6124D for ; Thu, 11 Nov 2021 00:30:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231705AbhKKAdb (ORCPT ); Wed, 10 Nov 2021 19:33:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbhKKAda (ORCPT ); Wed, 10 Nov 2021 19:33:30 -0500 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22FC2C061766 for ; Wed, 10 Nov 2021 16:30:42 -0800 (PST) Received: by mail-io1-xd2d.google.com with SMTP id k21so4946340ioh.4 for ; Wed, 10 Nov 2021 16:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fT8EyriSb2iTbW6FeExFuAllB5m3bIQ+kntOaqEpft4=; b=tIHVdpSGx/eIULXqasCsuoz+k1U2gnc1/sW3d+Le6rIdANCpKUfw7fHZrPm5HEz+AX cWiJQtBakCq7b+QWwFactAcTWGMUONNjOZPL9MHUvmKBXYdmYumS7/dD9g81zJ8G6stW inhiaxZ9ODFc0HssCtq7zTYEN+CoGC8m10GB2Cvi7EMzmt5DPzD3ENbYuftdTNtHYijj 7r+vP53dmloQ5ZJTizIkEeO5p4X2OfdFVfZWkLZS7jJBHPJCddjf+fOwPhbPS7KSwo+M W2lDmR+U4yJr1dERn7ZLuQKe3W+pKbcsB0DHSqTHySofXLQacXw462cdVvs9NC8n6RZu JI1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fT8EyriSb2iTbW6FeExFuAllB5m3bIQ+kntOaqEpft4=; b=y6SXXPIIoiPpqc6Ji25AjoEuiQz2Fzt0yVXD6ukLRVVnmlEq+DWdUk34qV6nFI0EUE nI8k1X4KyHS8WqhO26wexwLloRdOSYj7uxZGCMsRWV7tUWc43G624a+uAZXFZJyuSdwA bL7IMzKfxFUM44/OQXVyqnnNK0qYFz5CohdBPRTdeZRa66wYWbotsITWvOdMJDi5x1s8 rXTnl7LC+VofKGSxPSo5xc88kj8c4lN9KP4B/kEldH+oiq8P77TuvwL/8Qty4uvU6LnU q7b3cwgOUYZ6P/TVfdmXSetnvYVvNGhDIaIinoKvKLEFcoVLYLrunKNIJsCpi04ubkxT qpcA== X-Gm-Message-State: AOAM533484WUYuJHOsKCQidpdKOKh80URixlVtNTa6BytjDgAWvbc3sI 2qaFqvdf+m6n5RFw1i7nG3C0+/35DS3nu5ly5pairg== X-Google-Smtp-Source: ABdhPJwtwprt61SzFh4A9Utq6f0UjVGvoJCje/nmCTMC5hN0VJwRmCzn4kH/tJeXTGHQrT+tBF0/hmpY4RnBX19YQLk= X-Received: by 2002:a02:6027:: with SMTP id i39mr2255010jac.91.1636590641382; Wed, 10 Nov 2021 16:30:41 -0800 (PST) MIME-Version: 1.0 References: <20211110230138.3883950-1-almasrymina@google.com> In-Reply-To: From: Mina Almasry Date: Wed, 10 Nov 2021 16:30:30 -0800 Message-ID: Subject: Re: [PATCH v5] hugetlb: Add hugetlb.*.numa_stat file To: Shakeel Butt Cc: Mike Kravetz , Andrew Morton , Shuah Khan , Miaohe Lin , Oscar Salvador , Michal Hocko , Muchun Song , David Rientjes , Jue Wang , Yang Yao , Joanna Li , Cannon Matthews , linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 10, 2021 at 4:08 PM Shakeel Butt wrote: > > On Wed, Nov 10, 2021 at 3:01 PM Mina Almasry wrote: > > > [...] > > > > +struct hugetlb_cgroup_per_node { > > + /* hugetlb usage in pages over all hstates. */ > > + unsigned long usage[HUGE_MAX_HSTATE]; > > +}; > > + > > You missed my other question. Why do you think concurrent access to > this struct is safe? Oh, very sorry. I'll upload another iteration with a fix!