diff options
| author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2024-06-28 07:23:33 +0000 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2024-07-04 18:05:59 -0700 |
| commit | c2fad56b3c12a5fc6ea7426d2e39459e85e5b55e (patch) | |
| tree | 4939d27cf644df8d973ba2658b213e2171869733 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | mm: memcg: remove redundant seq_buf_has_overflowed() (diff) | |
| download | linux-c2fad56b3c12a5fc6ea7426d2e39459e85e5b55e.tar.gz linux-c2fad56b3c12a5fc6ea7426d2e39459e85e5b55e.zip | |
mm: memcg: adjust the warning when seq_buf overflows
Currently it uses WARN_ON_ONCE() if seq_buf overflows when user reads
memory.stat, the only advantage of WARN_ON_ONCE is that the splat is so
verbose that it gets noticed. And also it panics the system if
panic_on_warn is enabled. It seems like the warning is just an over
reaction and a simple pr_warn should just achieve the similar effect.
Link: https://lkml.kernel.org/r/20240628072333.2496527-1-xiujianfeng@huawei.com
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Suggested-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
