From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 D1CEE79F5 for ; Fri, 4 Apr 2025 01:39:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743730766; cv=none; b=aZOBbSJwRpdiqI0PEyc5X3/bI3yB2KSCMLHCjqfCbyqSO8K8H0wVRLxU3RFMuOTtKHdptFUD4xKvDfpnyvBnXdHC8gemTVmUbeezicYozAbZCrqvH6eYxl1xoF8DFdzIFqjnAPbCOMcRxIni4CGWUk1JyDxQsasr+jz/LggJzhc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743730766; c=relaxed/simple; bh=DtZAQweiMSk6FZO1f5P958x1appT4pTK+EhZwOYt7vM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sAxf0boEeW9SwLQyOMp/0qaRPIZwXUpjnb8rFVQeyiJ9VFH2WxvQPqAyR+cqKSbtHdoYx+ZNZQ+erxSpgCN2neyUE+AoavuGGdeEIupdG+xwCW4W3c2yLpe0hO6Mk2Vw3aR4bcGQeEHspQIdx700KTIxAaFGta5UpHdnXx5V8YA= 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=qaxRiP9a; arc=none smtp.client-ip=95.215.58.188 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="qaxRiP9a" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1743730760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IewN7pKcqzoLoYsB64biI0KFLTJjsc/YYNl0t3Vqevk=; b=qaxRiP9aYtHeilLBF8FCIQ45S/UjgcGyx6omZ6M/mvXLulgLOqbAdA3pE2FbrgtIyaBqoG 89LFcAdVpvcB9y6uDF1bjFGyqXBqg4p+84wElumr1tNxpPXxEeT2etlnB1O6mjp6CBLc0P mmnfNCj/jQFj/TNcZQhhvOV0A7mhhsc= From: Shakeel Butt To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Vlastimil Babka , Sebastian Andrzej Siewior , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Meta kernel team Subject: [PATCH v2 0/9] memcg: cleanup per-cpu stock Date: Thu, 3 Apr 2025 18:39:04 -0700 Message-ID: <20250404013913.1663035-1-shakeel.butt@linux.dev> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT This is a cleanup series which is trying to simplify the memcg per-cpu stock code, particularly it tries to remove unnecessary dependencies on local_lock of per-cpu memcg stock. The eight patch from Vlastimil optimizes the charge path by combining the charging and accounting. This series is based on mm-everything-2025-04-03-06-03. The main changes from v1 is collecting acks, adding warning in patch 1 and rebased on the latest local lock changes from Alexei. Shakeel Butt (8): memcg: remove root memcg check from refill_stock memcg: decouple drain_obj_stock from local stock memcg: introduce memcg_uncharge memcg: manually inline __refill_stock memcg: no refilling stock from obj_cgroup_release memcg: do obj_cgroup_put inside drain_obj_stock memcg: use __mod_memcg_state in drain_obj_stock memcg: manually inline replace_stock_objcg Vlastimil Babka (1): memcg: combine slab obj stock charging and accounting mm/memcontrol.c | 196 ++++++++++++++++++++++++------------------------ 1 file changed, 96 insertions(+), 100 deletions(-) -- 2.47.1