From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2FEEC4167B for ; Tue, 12 Dec 2023 18:46:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232994AbjLLSnv (ORCPT ); Tue, 12 Dec 2023 13:43:51 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?