From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 EB050258CF6 for ; Thu, 14 Aug 2025 20:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755202920; cv=none; b=bwvdODb5qBZwUdLH8vC7sntd8P1yXgnul0Tigd4FfzjAV4GeXcADylrrZsXvbUA9SWFXHzoszWHzc43oCKo7Vdb6zhQ7gAwzyUmlXo3TYxEJRvr4CaZfyMGk0PDULH+pmDiqW1LX7uH0DAXK86JO2uT0WuNW3L7M2Q2ePc22Kwo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755202920; c=relaxed/simple; bh=889VYTRIrbL3AsWcOiJZXGuYshjOG6r3nV8h7mnZeGo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=GCovb4RUrLQYU+gYqBK/iCvTJCBKMFGy2WCFpIQAIUmgYflMIgmTAiUFA8AJRp6a2lSZO7pl8RIVlvtweAoYqaJM2j9sVT8bozJo0kziOHcABYTwB7R8jhr6tEq4nBiG/ErOjEhI7EhwOWev5qsBPe7BYOPZo2IONYIXKqVGRlQ= 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=AYlpvdK7; arc=none smtp.client-ip=95.215.58.180 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="AYlpvdK7" 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=1755202906; 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=889VYTRIrbL3AsWcOiJZXGuYshjOG6r3nV8h7mnZeGo=; b=AYlpvdK7DjpVAS/UM1NYteoAytadnZdoVApEVlZwGSQBgzH6J+vMAPj4+JWjquYjK8X0z5 eG9bgeus6GC4N1okdQkTVZW+gfU+jn+Mi/hNMgxrTijT6YWoZhufcdP1T+WSlKD36RdA3f XjhOHHO0bZbB9SDh0THNG9EOWeH6KEw= From: Roman Gushchin To: Kuniyuki Iwashima Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Neal Cardwell , Paolo Abeni , Willem de Bruijn , Matthieu Baerts , Mat Martineau , Johannes Weiner , Michal Hocko , Shakeel Butt , Andrew Morton , =?utf-8?Q?Michal_Koutn=C3=BD?= , Tejun Heo , Simon Horman , Geliang Tang , Muchun Song , Mina Almasry , Kuniyuki Iwashima , netdev@vger.kernel.org, mptcp@lists.linux.dev, cgroups@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v4 net-next 10/10] net: Define sk_memcg under CONFIG_MEMCG. In-Reply-To: <20250814200912.1040628-11-kuniyu@google.com> (Kuniyuki Iwashima's message of "Thu, 14 Aug 2025 20:08:42 +0000") References: <20250814200912.1040628-1-kuniyu@google.com> <20250814200912.1040628-11-kuniyu@google.com> Date: Thu, 14 Aug 2025 13:21:24 -0700 Message-ID: <877bz5lkmz.fsf@linux.dev> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT Kuniyuki Iwashima writes: > Except for sk_clone_lock(), all accesses to sk->sk_memcg > is done under CONFIG_MEMCG. > > As a bonus, let's define sk->sk_memcg under CONFIG_MEMCG. > > Signed-off-by: Kuniyuki Iwashima > Reviewed-by: Eric Dumazet Acked-by: Roman Gushchin