public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] /proc/stat vs. failed order-4 allocation
@ 2014-06-16  9:04 Heiko Carstens
  2014-06-16  9:04 ` [PATCH 1/2] proc/stat: convert to single_open_size() Heiko Carstens
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Heiko Carstens @ 2014-06-16  9:04 UTC (permalink / raw)
  To: Andrew Morton
  Cc: David Rientjes, Ian Kent, Hendrik Brueckner, Thorsten Diehl,
	Andrea Righi, Christoph Hellwig, Al Viro, Stefan Bader,
	linux-kernel, Heiko Carstens

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-06-26  2:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-16  9:04 [PATCH 0/2] /proc/stat vs. failed order-4 allocation Heiko Carstens
2014-06-16  9:04 ` [PATCH 1/2] proc/stat: convert to single_open_size() Heiko Carstens
2014-06-18 23:28   ` David Rientjes
2014-06-16  9:04 ` [PATCH 2/2] fs/seq_file: fallback to vmalloc allocation Heiko Carstens
2014-06-18 23:31   ` David Rientjes
2014-06-18 21:29 ` [PATCH 0/2] /proc/stat vs. failed order-4 allocation Andrew Morton
2014-06-21  9:10   ` Heiko Carstens
2014-06-23 23:04     ` Andrew Morton
2014-06-24 23:52       ` David Rientjes
2014-06-25  6:15         ` Heiko Carstens
2014-06-26  2:20           ` Ian Kent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox