Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0CD5920B7F9; Wed, 20 Aug 2025 01:23:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755653038; cv=none; b=WlQcvxXmiSCCw5oJkBsjRVzzfrdXPBfuAY2tPYCZZrUukd7tpWeRcezOtuSAfdQ44iwLD0U0JNCIdBqG4DcK+YiTEBlKQ2U4hG6x4c7ssEpvlI5HCZ0AxrDsa2FrNSKs20ldxpHivaFZnRlJ69qt5yWdOOxChyY31SAhNY7/FkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755653038; c=relaxed/simple; bh=C+2GTR0YI18RQg7u25sMTQABBcMAstNJVqtMhULRkOc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kmxlFIrP5cUp90bchQTgkcebpAlz+I9tzxcXFY6qMnHhOGX9G4y+SfRWvwm7IQmueEWDL2uRHmkN9cP31T2wTsyO3ggCJaOGtV65LRKyPpBcCE06VmGf62E64+xsFW3ooSxDLzggFL/e2WOyIULem0ag+qkatV70p0yNXpXIhuw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WZaPJdoc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WZaPJdoc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBFDAC4CEF1; Wed, 20 Aug 2025 01:23:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755653037; bh=C+2GTR0YI18RQg7u25sMTQABBcMAstNJVqtMhULRkOc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WZaPJdocCn479Xgj8B3WHfL6XEbteMRp4spYbJHrKRBsvPTNdt82w7J0ckf1sbZ3K v9NLjjrNm03pfouKO9pYrOz5WmbXxn0zgnY7eQhSHLKFALzAzd7gGxDXbAXO7ggY6S ZP6KuZGPuipzXROF92MMdH1DF++mTr9xnzIbQoqfGyqa/LtMo511gtA0Z8HjzXSyf8 pykXVleVygK3hxM9bwoYGzDKOB33L3M0EUgvmgNfV3iFTsKEryFnjpp7f+S77kWBbj 1i7g6Qf9xMxQ2SjhotyTIT4+ebodrg5TiFSBQ/AiC1u7MxNG8D99SIZ6KKZSBUxKmP 009BVg9fIAqzg== Date: Tue, 19 Aug 2025 18:23:56 -0700 From: Jakub Kicinski To: Shakeel Butt Cc: Kuniyuki Iwashima , "David S. Miller" , Eric Dumazet , Neal Cardwell , Paolo Abeni , Willem de Bruijn , Matthieu Baerts , Mat Martineau , Johannes Weiner , Michal Hocko , Roman Gushchin , Andrew Morton , "Michal =?UTF-8?B?S291dG7DvQ==?=" , 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 v5 net-next 09/10] net-memcg: Pass struct sock to mem_cgroup_sk_under_memory_pressure(). Message-ID: <20250819182356.75aa4996@kernel.org> In-Reply-To: <20250815201712.1745332-10-kuniyu@google.com> References: <20250815201712.1745332-1-kuniyu@google.com> <20250815201712.1745332-10-kuniyu@google.com> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 15 Aug 2025 20:16:17 +0000 Kuniyuki Iwashima wrote: > We will store a flag in the lowest bit of sk->sk_memcg. > > Then, we cannot pass the raw pointer to mem_cgroup_under_socket_pressure(). > > Let's pass struct sock to it and rename the function to match other > functions starting with mem_cgroup_sk_. > > Note that the helper is moved to sock.h to use mem_cgroup_from_sk(). > > Signed-off-by: Kuniyuki Iwashima > Reviewed-by: Eric Dumazet > Acked-by: Roman Gushchin Hi Shakeel, looks like you acked every single patch here but this one. Is this intentional? :)