lkml.org 
[lkml]   [2014]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] /proc/stat vs. failed order-4 allocation
Date
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



\
 
 \ /
  Last update: 2014-06-16 11:41    [W:0.074 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site