Commit 9e619cd
memcg: no irq disable for memcg stock lock
There is no need to disable irqs to use memcg per-cpu stock, so let's just
not do that. One consequence of this change is if the kernel while in
task context has the memcg stock lock and that cpu got interrupted. The
memcg charges on that cpu in the irq context will take the slow path of
memcg charging. However that should be super rare and should be fine in
general.
Link: https://lkml.kernel.org/r/20250506225533.2580386-5-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Eric Dumaze <edumazet@google.com>
Cc: Jakub Kacinski <kuba@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent c80509e commit 9e619cd
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1829 | 1829 | | |
1830 | 1830 | | |
1831 | 1831 | | |
1832 | | - | |
1833 | 1832 | | |
1834 | 1833 | | |
1835 | 1834 | | |
1836 | 1835 | | |
1837 | | - | |
| 1836 | + | |
1838 | 1837 | | |
1839 | 1838 | | |
1840 | 1839 | | |
| |||
1851 | 1850 | | |
1852 | 1851 | | |
1853 | 1852 | | |
1854 | | - | |
| 1853 | + | |
1855 | 1854 | | |
1856 | 1855 | | |
1857 | 1856 | | |
| |||
1895 | 1894 | | |
1896 | 1895 | | |
1897 | 1896 | | |
1898 | | - | |
1899 | 1897 | | |
1900 | 1898 | | |
1901 | 1899 | | |
1902 | 1900 | | |
1903 | | - | |
| 1901 | + | |
1904 | 1902 | | |
1905 | 1903 | | |
1906 | 1904 | | |
1907 | 1905 | | |
1908 | 1906 | | |
1909 | | - | |
| 1907 | + | |
1910 | 1908 | | |
1911 | 1909 | | |
1912 | 1910 | | |
| |||
1931 | 1929 | | |
1932 | 1930 | | |
1933 | 1931 | | |
1934 | | - | |
1935 | 1932 | | |
1936 | 1933 | | |
1937 | 1934 | | |
| |||
1946 | 1943 | | |
1947 | 1944 | | |
1948 | 1945 | | |
1949 | | - | |
| 1946 | + | |
1950 | 1947 | | |
1951 | 1948 | | |
1952 | 1949 | | |
| |||
1981 | 1978 | | |
1982 | 1979 | | |
1983 | 1980 | | |
1984 | | - | |
| 1981 | + | |
1985 | 1982 | | |
1986 | 1983 | | |
1987 | 1984 | | |
| |||
0 commit comments