Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753132AbcD1P2R (ORCPT ); Thu, 28 Apr 2016 11:28:17 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37090 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752438AbcD1P2P (ORCPT ); Thu, 28 Apr 2016 11:28:15 -0400 Date: Thu, 28 Apr 2016 17:28:12 +0200 From: Michal Hocko To: Mikulas Patocka Cc: Andrew Morton , linux-mm@kvack.org, LKML , Shaohua Li , dm-devel@redhat.com Subject: Re: [PATCH] md: simplify free_params for kmalloc vs vmalloc fallback Message-ID: <20160428152812.GM31489@dhcp22.suse.cz> References: <1461849846-27209-20-git-send-email-mhocko@kernel.org> <1461855076-1682-1-git-send-email-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 574 Lines: 16 On Thu 28-04-16 11:04:05, Mikulas Patocka wrote: > Acked-by: Mikulas Patocka Thanks! > BTW. we could also use kvmalloc to complement kvfree, proposed here: > https://www.redhat.com/archives/dm-devel/2015-July/msg00046.html If there are sufficient users (I haven't checked other than quick git grep on KMALLOC_MAX_SIZE and there do not seem that many) who are sharing the same fallback strategy then why not. But I suspect that some would rather fallback earlier and even do not attempt larger than e.g. order-1 requests. -- Michal Hocko SUSE Labs