mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: David Rientjes <rientjes@google.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Christoph Hellwig <hch@infradead.org>,
	Al Viro <viro@zeniv.linux.org.uk>,
	linux-kernel@vger.kernel.org
Subject: Re: [patch] fs, seq_file: fallback to vmalloc instead of oom kill processes
Date: Wed, 26 Nov 2014 14:38:46 -0800	[thread overview]
Message-ID: <1417041526.16355.7.camel@perches.com> (raw)
In-Reply-To: <20141126142404.bc6b03387d5e869908db5e38@linux-foundation.org>

On Wed, 2014-11-26 at 14:24 -0800, Andrew Morton wrote:
> There are eleventy billion places where we do the open coded
> kmalloc-or-vmalloc thing.  Sigh.  Perhaps it is time to add a helper
> function which does this, so that all such callers use
> __GFP_NO_OOM_KILL.

That would go along nicely with kvfree() in mm/util.c

void kvfree(const void *addr)
{
	if (is_vmalloc_addr(addr))
		vfree(addr);
	else
		kfree(addr);
}
EXPORT_SYMBOL(kvfree);



  reply	other threads:[~2014-11-26 22:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-26 22:16 David Rientjes
2014-11-26 22:24 ` Andrew Morton
2014-11-26 22:38   ` Joe Perches [this message]
2014-11-26 22:40   ` David Rientjes
2014-11-26 22:48     ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1417041526.16355.7.camel@perches.com \
    --to=joe@perches.com \
    --cc=akpm@linux-foundation.org \
    --cc=hch@infradead.org \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rientjes@google.com \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®