[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170112155743.GN12081@suse.cz>
Date: Thu, 12 Jan 2017 16:57:43 +0100
From: David Sterba <dsterba@...e.cz>
To: Michal Hocko <mhocko@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Colin Cross <ccross@...roid.com>,
Hariprasad S <hariprasad@...lsio.com>,
Santosh Raspatur <santosh@...lsio.com>,
Kees Cook <keescook@...omium.org>,
Johannes Weiner <hannes@...xchg.org>,
Heiko Carstens <heiko.carstens@...ibm.com>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
Anton Vorontsov <anton@...msg.org>,
Eric Dumazet <eric.dumazet@...il.com>,
Ilya Dryomov <idryomov@...il.com>,
Kent Overstreet <kent.overstreet@...il.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
David Rientjes <rientjes@...gle.com>,
Andreas Dilger <andreas.dilger@...el.com>,
Dan Williams <dan.j.williams@...el.com>,
Oleg Drokin <oleg.drokin@...el.com>,
Tony Luck <tony.luck@...el.com>,
Alexei Starovoitov <ast@...nel.org>, linux-mm@...ck.org,
Tariq Toukan <tariqt@...lanox.com>,
Yishai Hadas <yishaih@...lanox.com>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Ben Skeggs <bskeggs@...hat.com>, Zheng Yan <zyan@...hat.com>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Michal Hocko <MHocko@...e.com>,
Vlastimil Babka <vbabka@...e.cz>, Mel Gorman <mgorman@...e.de>,
LKML <linux-kernel@...r.kernel.org>, netdev@...r.kernel.org,
Al Viro <viro@...iv.linux.org.uk>
Subject: Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded
variants
On Thu, Jan 12, 2017 at 04:37:16PM +0100, Michal Hocko wrote:
> From: Michal Hocko <mhocko@...e.com>
>
> There are many code paths opencoding kvmalloc. Let's use the helper
> instead. The main difference to kvmalloc is that those users are usually
> not considering all the aspects of the memory allocator. E.g. allocation
> requests < 64kB are basically never failing and invoke OOM killer to
> satisfy the allocation. This sounds too disruptive for something that
> has a reasonable fallback - the vmalloc. On the other hand those
> requests might fallback to vmalloc even when the memory allocator would
> succeed after several more reclaim/compaction attempts previously. There
> is no guarantee something like that happens though.
>
> This patch converts many of those places to kv[mz]alloc* helpers because
> they are more conservative.
For the btrfs bits,
Acked-by: David Sterba <dsterba@...e.com>
Powered by blists - more mailing lists