Commit 864359d
percpu: scoped objcg protection
mainline inclusion
from mainline-v6.7-rc1
category: performance
commit c63b835 upstream.
Similar to slab and kmem, switch to a scope-based protection of the objcg
pointer to avoid.
Link: https://lkml.kernel.org/r/20231019225346.1822282-6-roman.gushchin@linux.dev
Signed-off-by: Roman Gushchin (Cruise) <roman.gushchin@linux.dev>
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Acked-by: Shakeel Butt <shakeelb@google.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
(cherry picked from commit c63b835)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent b382bbb commit 864359d
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1628 | 1628 | | |
1629 | 1629 | | |
1630 | 1630 | | |
1631 | | - | |
| 1631 | + | |
1632 | 1632 | | |
1633 | 1633 | | |
1634 | 1634 | | |
1635 | | - | |
1636 | | - | |
| 1635 | + | |
1637 | 1636 | | |
1638 | | - | |
1639 | 1637 | | |
1640 | 1638 | | |
1641 | 1639 | | |
| |||
1649 | 1647 | | |
1650 | 1648 | | |
1651 | 1649 | | |
| 1650 | + | |
1652 | 1651 | | |
1653 | 1652 | | |
1654 | 1653 | | |
| |||
1657 | 1656 | | |
1658 | 1657 | | |
1659 | 1658 | | |
1660 | | - | |
1661 | 1659 | | |
1662 | 1660 | | |
1663 | 1661 | | |
| |||
0 commit comments