diff options
| author | Jiaqi Yan <[email protected]> | 2023-01-20 03:46:21 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-02-03 06:33:28 +0000 |
| commit | 18f41fa616ee4d66c67033eb46b951bf6e1b4a12 (patch) | |
| tree | 06dc0ef2810e6523ccadc9dc0c6548892f2339a8 /mm/sparse.c | |
| parent | mm: memory-failure: add memory failure stats to sysfs (diff) | |
| download | kernel-18f41fa616ee4d66c67033eb46b951bf6e1b4a12.tar.gz kernel-18f41fa616ee4d66c67033eb46b951bf6e1b4a12.zip | |
mm: memory-failure: bump memory failure stats to pglist_data
Right before memory_failure finishes its handling, accumulate poisoned
page's resolution counters to pglist_data's memory_failure_stats, so as to
update the corresponding sysfs entries.
Tested:
1) Start an application to allocate memory buffer chunks
2) Convert random memory buffer addresses to physical addresses
3) Inject memory errors using EINJ at chosen physical addresses
4) Access poisoned memory buffer and recover from SIGBUS
5) Check counter values under
/sys/devices/system/node/node*/memory_failure/*
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Jiaqi Yan <[email protected]>
Acked-by: David Rientjes <[email protected]>
Acked-by: Naoya Horiguchi <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Yang Shi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions
