Messages in this thread | | | From | Heiko Carstens <> | Subject | [PATCH 0/2] /proc/stat vs. failed order-4 allocation | Date | Mon, 16 Jun 2014 11:04:50 +0200 |
| |
These two patches are supposed to "fix" failed order-4 memory allocations which have been observed when reading /proc/stat. The problem has been observed on s390 as well as on x86.
To address the problem change the seq_file memory allocations to fallback to use vmalloc, so that allocations also work if memory is fragmented.
This approach seems to be simpler and less intrusive than changing /proc/stat to use an interator. Also it "fixes" other users as well, which use seq_file's single_open() interface.
Heiko Carstens (2): proc/stat: convert to single_open_size() fs/seq_file: fallback to vmalloc allocation
fs/proc/stat.c | 22 ++-------------------- fs/seq_file.c | 30 +++++++++++++++++++++--------- 2 files changed, 23 insertions(+), 29 deletions(-)
-- 1.8.5.5
| |