Message ID | 20220808125602.97747-9-goliath@infraroot.at |
---|---|
State | New |
Headers | show |
Series | Backport MEMCG changes from v5.17 | expand |
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 50d2d5432018..70c374761bb8 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -3249,6 +3249,10 @@ static struct obj_cgroup *drain_obj_stock(struct memcg_stock_pcp *stock) } stock->cached_objcg = NULL; + /* + * The `old' objects needs to be released by the caller via + * obj_cgroup_put() outside of memcg_stock_pcp::stock_lock. + */ return old; }