[Devel] [PATCH hci-8.2 3/9] ms/net: factor-out _sk_charge() helper

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Thu Nov 19 07:53:24 MSK 2026


> From: Paolo Abeni <pabeni at redhat.com>
> 
> Move out of __inet_accept() the code dealing charging newly
> accepted socket to memcg. MPTCP will soon use it to on a per
> subflow basis, in different contexts.
> 
> No functional changes intended.
> 
> Signed-off-by: Paolo Abeni <pabeni at redhat.com>
> Acked-by: Geliang Tang <geliang at kernel.org>
> Acked-by: Matthieu Baerts (NGI0) <matttbe at kernel.org>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe at kernel.org>
> Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-1-1f34b6c1e0b1@kernel.org
> Signed-off-by: Jakub Kicinski <kuba at kernel.org>
> (cherry picked from commit 075b19c211dfeea5f27075293ddf8795b78c9bd9)
> 
> Rebase note: __sk_charge() uses sk->sk_memcg and
> mem_cgroup_charge_skmem(), as this tree has neither mem_cgroup_from_sk()
> nor mem_cgroup_sk_charge(), and __inet_accept() keeps SCTP out as in
> the previous patch.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155321
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=3




More information about the Devel mailing list