Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4843136rdb; Tue, 12 Dec 2023 10:44:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIZgOJafYwANj0JJMrtX+FfWh7XNfxJAewkS5NICLtTSMwLb5bvOk/EgRv0zli803IwUb+ X-Received: by 2002:a17:903:228b:b0:1d0:6d5e:47a7 with SMTP id b11-20020a170903228b00b001d06d5e47a7mr3964292plh.60.1702406686797; Tue, 12 Dec 2023 10:44:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702406686; cv=none; d=google.com; s=arc-20160816; b=OeDd6vc7IU1OeRogtHn6t/Opoo1g5JRuPl58isFL/zMDVRv1xgAU7nDEm0q5X9y0LC r+uFsRLy6YHs9zcRfX7edCPk2drOFXrzl6lLBc07LBnpzIiQ3C16H5uw2J4CxZBB+rl2 UTbdUnjFN8aTZ/c9TynaRShWiGqS+7UorSE5FnA85Pjh3DkQQlRxC199VN+ys+8Gy26U ShQ2q7CsXWydzXnGmxnVnoH3JzYtu8Ygj+MBf6J5D7czgOyGcEWLYcwwKO6WI7E4oFHb AbmaHgRdi5eANT643J2YOPfSgGh8EiOmjTS2iBcrQdGFKXest6ssSj6wAaJapIJnqrWt SPBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=/FgPFtTNOY6sURsPzWrW+JwJFtJSmiA6CYcXnl9NPEY=; fh=KWpqRygaCltjAbCETaO/RCJ9uy1k+YPCvfGaTSjZVFc=; b=JoHO08Fhn1Rzhfpi2II9Q3JTIADeMeQYaUfBJ9gjTABmHcS2HpmgjkstR7Ak0Fsdsl Mn0drnxgdfGeq3F7TgilvLJf+l8ej0aLSnEkK/cyRaOMG8IOBZldbKD9SumHFlzeP2Qv IcbIkjrHAJ9iWy37A9Fny9DVU9DF0ljP4iZZAgicAIqpXDFXUV7prLhA1lhi/Rd4FfBR gzJyTTGR6vR+x9PPKCsvt1eHc2ZoqFktmnPGMZI9YQY0z9cIOFfrlfH4neY8278O6FZh u21GKd2baam9xbwsf0uxQ394OmIcJ86+2xGqTBDFWQDqURwxdtstrC9uNLbPnDm7LXWw Logw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linux-foundation.org header.s=korg header.b="kX3/5sIt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e13-20020a170902d38d00b001cfcbf477c5si8151235pld.30.2023.12.12.10.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 10:44:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=fail header.i=@linux-foundation.org header.s=korg header.b="kX3/5sIt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8302D802398A; Tue, 12 Dec 2023 10:44:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232829AbjLLSnu (ORCPT + 99 others); Tue, 12 Dec 2023 13:43:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbjLLSnu (ORCPT ); Tue, 12 Dec 2023 13:43:50 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E32BAA for ; Tue, 12 Dec 2023 10:43:57 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 254FFC433C8; Tue, 12 Dec 2023 18:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1702406636; bh=nlynSdmzpDeJ4+c9EM+qpsatuZCr/KLNEXvmbTx2z3o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kX3/5sItCGETTmZWXX+yh10B3+D+Df8L8wljrS/HDEa+aEwt0IK1BMEUphHNmNTJh oDL/rJUKzY7PECmK6q+FK0Vzu3anqXz5iAulnT78ISVgKdoUubD4fDvi9tXWwYBLBX 6CJDVd2mkAWP+ce8UzejvIHfokPwPyIWZzlleMWM= Date: Tue, 12 Dec 2023 10:43:55 -0800 From: Andrew Morton To: Shakeel Butt Cc: Yosry Ahmed , Wei Xu , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Ivan Babrou , Tejun Heo , =?ISO-8859-1?Q? "Michal_Koutn=FD" ?= , Waiman Long , kernel-team@cloudflare.com, Greg Thelen , Domenico Cerasuolo , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Bagas Sanjaya Subject: Re: [mm-unstable v4 5/5] mm: memcg: restore subtree stats flushing Message-Id: <20231212104355.ba052748471e1e0ce5cc35a0@linux-foundation.org> In-Reply-To: <20231204235856.k4izppfsrpg2rng7@google.com> References: <20231129032154.3710765-1-yosryahmed@google.com> <20231129032154.3710765-6-yosryahmed@google.com> <20231202083129.3pmds2cddy765szr@google.com> <20231204235856.k4izppfsrpg2rng7@google.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 10:44:44 -0800 (PST) On Mon, 4 Dec 2023 23:58:56 +0000 Shakeel Butt wrote: > On Mon, Dec 04, 2023 at 03:49:01PM -0800, Yosry Ahmed wrote: > [...] > > > > From 19af26e01f93cbf0806d75a234b78e48c1ce9d80 Mon Sep 17 00:00:00 2001 > > From: Yosry Ahmed > > Date: Mon, 4 Dec 2023 23:43:29 +0000 > > Subject: [PATCH] mm: memcg: remove stats flushing mutex > > > > The mutex was intended to make the waiters sleep instead of spin, and > > such that we can check the update thresholds again after acquiring the > > mutex. However, the mutex has a risk of priority inversion, especially > > since the underlying rstat lock can de dropped while the mutex is held. > > > > Synthetic testing with high concurrency of flushers shows no > > regressions without the mutex, so remove it. > > > > Suggested-by: Shakeel Butt > > Signed-off-by: Yosry Ahmed > > Acked-by: Shakeel Butt > I'd like to move this series into mm-stable soon. Are we all OK with that?