From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034125AbdAFNfM (ORCPT ); Fri, 6 Jan 2017 08:35:12 -0500 Received: from mx2.suse.de ([195.135.220.15]:48676 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032598AbdAFNfD (ORCPT ); Fri, 6 Jan 2017 08:35:03 -0500 Date: Fri, 6 Jan 2017 14:34:59 +0100 From: Michal Hocko To: Vlastimil Babka Cc: Andrew Morton , David Rientjes , Mel Gorman , Johannes Weiner , Al Viro , linux-mm@kvack.org, LKML , kvm@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, linux-ext4@vger.kernel.org, Joe Perches , Anatoly Stepanov , Paolo Bonzini , Mike Snitzer , "Michael S. Tsirkin" , "Theodore Ts'o" , Andreas Dilger Subject: Re: [PATCH] mm: introduce kv[mz]alloc helpers Message-ID: <20170106133459.GM5556@dhcp22.suse.cz> References: <20170102133700.1734-1-mhocko@kernel.org> <747f7b9a-e95d-a872-7e30-ea235b91593a@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <747f7b9a-e95d-a872-7e30-ea235b91593a@suse.cz> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 06-01-17 14:29:33, Vlastimil Babka wrote: > On 01/02/2017 02:37 PM, Michal Hocko wrote: > > --- a/drivers/vhost/vhost.c > > +++ b/drivers/vhost/vhost.c > > @@ -514,18 +514,9 @@ long vhost_dev_set_owner(struct vhost_dev *dev) > > } > > EXPORT_SYMBOL_GPL(vhost_dev_set_owner); > > > > -static void *vhost_kvzalloc(unsigned long size) > > -{ > > - void *n = kzalloc(size, GFP_KERNEL | __GFP_NOWARN | __GFP_REPEAT); > > Hi, I just noticed that this had __GFP_REPEAT, so you'll probably want > to move these hunks to patch 3 with the rest of vhost. Well, spotted. I will do that. Thanks! -- Michal Hocko SUSE Labs