Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4751382rwl; Tue, 28 Mar 2023 10:47:15 -0700 (PDT) X-Google-Smtp-Source: AKy350a1s4bS9+4FeLGQJDptFg+4KTJUAiAIXyS7HFjgHgY2Naeqxot4NRre46jnWlG+LZ4SfnuE X-Received: by 2002:aa7:d14e:0:b0:500:58cb:3b05 with SMTP id r14-20020aa7d14e000000b0050058cb3b05mr15798984edo.27.1680025635413; Tue, 28 Mar 2023 10:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680025635; cv=none; d=google.com; s=arc-20160816; b=ld7Corb/kPJWnPwx1YM5VkXDESba7oxORjAkdguCtrbiL50TO4xDsPpWQMLgAuokl8 +W6N2tIP67Vytunr01NR+CLM0uSWimGq56F8E9Ddys3anqKOXF44hrWIEC6bBu4MAHq0 Z88C4kt1rNmz3WfZCcigP61R5uM6D6phFp2Q7D3oHiiQFcsDUioCHu//hvVwZ8BDsOQ0 9ZSKjQd8lvs69aeAEks7rtTG7Z7HJXnax4zfam/K7OlLKh9bHiVrhPi5E/xh/XXBuiFp PtdKFqJeScOg4R7QfEHx+U/mvwYBPGoobfkwDgta03pWTmK9pcAocqL1XnG12FRyIuhv Y2Qg== 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=YG+UIQYgxqGHyxX9M5F8H7BPrKcU2ibGbTNwGE2wMMA=; b=rrOxP+Jw4rQVGMWAZntloGuEMJnXdfOlyjUhf4tM1NN2ZKGjW460kv7a9pqy1DOXU3 Bc91SzbKAlPHtkMz789HOuxlNEwO2YJQFL8vYbYM7vsedy3ofNafeLfl5mJX6Rvumwo+ RN+mMLnPz/wa6mqcG7KEimPl6YBDMKopg1Pp/F4nD7XWTetv86SUeUNLB2y++Dq6SQax VfTX7rgDnttnOMWVHDwnJmIXR2SZoIv2tvhx7dfSjteeQAZxl70B+bpC0BSq87tzmy0L 4wgVflNBtcb9UN6q5qC92lv6Q9BytcOXvHf/GnGpwJXR1uxuTg1IwQBnqmSXG5F0ne3x B0EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=lUUqF6Gy; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020aa7d68b000000b004bc45c5440esi31146447edr.67.2023.03.28.10.46.50; Tue, 28 Mar 2023 10:47:15 -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=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=lUUqF6Gy; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbjC1RnL (ORCPT + 99 others); Tue, 28 Mar 2023 13:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbjC1RnH (ORCPT ); Tue, 28 Mar 2023 13:43:07 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 321C6EB44 for ; Tue, 28 Mar 2023 10:43:01 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id b20so53004007edd.1 for ; Tue, 28 Mar 2023 10:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; t=1680025379; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YG+UIQYgxqGHyxX9M5F8H7BPrKcU2ibGbTNwGE2wMMA=; b=lUUqF6Gya0c4F6EmNxmKWP3J//Rfc+fMUR5PY0DlyVsha/TGEgRjN4mCOT1l6A8IiY n7xFgRU2eUNmyXHQduREl8GSVPQMGcc7AZS0+Yez2IHxxhB1Uh8xq5g8Caq0YNkYnsGy SJ5p88YcGM+O0E4pTE0ozZEm/wN++qhR9hFCmUIAikpRO3S9cwjnvwjA4/KEwZ1DdN94 tcIp0SZS/C/QVh3Q8pNXwF0lOeoF8rHc+vz0WJ1G8dYJJF9qtD5/DcKJlm3B1G+5jlRk 1GAWOqe5Ff4znRwZqdRMVPIyWXptPQmx152n8P8iGBLIVlpm9mLKaGq+4+SvyxzWPYLi W/hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680025379; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YG+UIQYgxqGHyxX9M5F8H7BPrKcU2ibGbTNwGE2wMMA=; b=JHrk1Lhi2Tnfg8zlRdmcHiQ+9ArKeqQ7eH+KtVNVsUTDi5GzgXBO7qRiflYUjmtju4 6hX4+Io0EMf/XHq22HAvAhsn1pIETVUwYNARfZDonCE3JJX6LFqBMzT6yx6BIR9wJQ17 N4CyJ53IXI+TtdZz+TOSznAKOn85hKjhEwYzZa3vKGSlMleotVq6WhA9yvukzwZVrlcJ Xq7oVfp3GkcP0Pq/g2FH5s16zaGF9lXjO3we0nVizH65vgtq+E4CwHJYi5U2EKGIQCPQ /YmEBcDmZFwWa1feL/GazRFfsHRJEWuJpxL+hf8QL0m1zQ2xJyopeTstAPh8wHYSQtUK gIEw== X-Gm-Message-State: AAQBX9cW849ZkJfZG+aqyJR9CdpiRppzNTKvjoBhBBFtdRCvN2DCf4L2 /WiYlQao6CmTppz8aHykZB3wVA== X-Received: by 2002:aa7:d053:0:b0:4fa:e129:31cf with SMTP id n19-20020aa7d053000000b004fae12931cfmr17134270edo.23.1680025379828; Tue, 28 Mar 2023 10:42:59 -0700 (PDT) Received: from localhost ([2a02:8070:6387:ab20:5139:4abd:1194:8f0e]) by smtp.gmail.com with ESMTPSA id g20-20020a50d5d4000000b004fd29e87535sm7296869edj.14.2023.03.28.10.42.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 10:42:59 -0700 (PDT) Date: Tue, 28 Mar 2023 13:42:58 -0400 From: Johannes Weiner To: Yosry Ahmed Cc: Tejun Heo , Josef Bacik , Jens Axboe , Zefan Li , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , Michal =?iso-8859-1?Q?Koutn=FD?= , Vasily Averin , cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org Subject: Re: [PATCH v1 2/9] memcg: rename mem_cgroup_flush_stats_"delayed" to "ratelimited" Message-ID: References: <20230328061638.203420-1-yosryahmed@google.com> <20230328061638.203420-3-yosryahmed@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230328061638.203420-3-yosryahmed@google.com> X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Tue, Mar 28, 2023 at 06:16:31AM +0000, Yosry Ahmed wrote: > mem_cgroup_flush_stats_delayed() suggests his is using a delayed_work, > but this is actually sometimes flushing directly from the callsite. > > What it's doing is ratelimited calls. A better name would be > mem_cgroup_flush_stats_ratelimited(). > > Suggested-by: Johannes Weiner > Signed-off-by: Yosry Ahmed Acked-by: Johannes Weiner