From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F15E2D94BA for ; Tue, 12 May 2026 16:08:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778602115; cv=none; b=aHdvMZbMvvnKfQgJ6jY0RTiJyUPdLP23syPpNpxhbZu2ioozWaNcIjvYD5yT3B2MPFmRFBD0CaVouqTVTrSbvnNrRsRFtU1L99eJFR4UJKkE4i1EYmv83bg0qzFrsI/XVrWn+iz9q+6YwX3LJDequxELun6mrOWEZJeeYynOqiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778602115; c=relaxed/simple; bh=FfA31veIK14by6jLWYDU+NO2Kv59cKt9QSL74jZIC40=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oITko3EelKXoy4UAD99b/AnzlquvT0MiilNf8TIAAdsMUItgDKS7PP2C3AZ31/Gzzbv9EYbXHn6tE7sxDYb4ecJrzoHiS02LwDCOXpjqeoFihjY64HMh962X/044qNA5Za4CGTi2wmF+tE5LAJ2y6FQXBsvtAdnxarjHOcvnwvI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=WMotxzTT; arc=none smtp.client-ip=91.218.175.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="WMotxzTT" Date: Tue, 12 May 2026 09:08:12 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1778602111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JQEQQ/VVs9AhGm+qtGkVypTgVgwVlaVm605jGnsgvX4=; b=WMotxzTT7Gex56zTN2EDTCuUXloYSEoO/TNSMbbi7q6VIR1JIsjOfRhrvH/Ah77igTjH48 wuVjVT3Ah5ANBizD0PmSEvUx6EAonupa7wSKrYFhqQd4aTaD2gTmQ7GocT6XIBDOhtthe1 4JTKBYtHiCUCb1tilGFeczME/KueIA0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Alexandre Ghiti Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Dennis Zhou , Tejun Heo , Christoph Lameter , Vlastimil Babka , Yosry Ahmed , Nhat Pham , Sergey Senozhatsky , Chengming Zhou , Suren Baghdasaryan , Qi Zheng , David Hildenbrand , Lorenzo Stoakes , Minchan Kim , Mike Rapoport , Axel Rasmussen , Barry Song , Kairui Song , Wei Xu , Yuanchu Xie , "Liam R . Howlett" , Joshua Hahn , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH 1/8] mm: memcontrol: propagate NMI slab stats to memcg vmstats Message-ID: References: <20260511202136.330358-1-alex@ghiti.fr> <20260511202136.330358-2-alex@ghiti.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Mon, May 11, 2026 at 03:49:36PM -0700, Shakeel Butt wrote: > On Mon, May 11, 2026 at 10:20:36PM +0200, Alexandre Ghiti wrote: > > flush_nmi_stats() drains per-node NMI slab atomics into the per-node > > lruvec_stats, but does not propagate them to the memcg-level vmstats. > > > > This is inconsistent with account_slab_nmi_safe() which updates both, > [...] > > > so fix this by propagating the NMI slab stats to the memcg-level vmstats. > > > > Fixes: 940b01fc8dc1 ("memcg: nmi safe memcg stats for specific archs") > > Signed-off-by: Alexandre Ghiti Please resend this patch as independent patch and CC stable.