From patchwork Wed Apr 21 19:07:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balbir Singh X-Patchwork-Id: 93931 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3LJ7Hnr005001 for ; Wed, 21 Apr 2010 19:07:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753280Ab0DUTHL (ORCPT ); Wed, 21 Apr 2010 15:07:11 -0400 Received: from e28smtp04.in.ibm.com ([122.248.162.4]:40218 "EHLO e28smtp04.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067Ab0DUTHK (ORCPT ); Wed, 21 Apr 2010 15:07:10 -0400 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp04.in.ibm.com (8.14.3/8.13.1) with ESMTP id o3LJ78m3011975 for ; Thu, 22 Apr 2010 00:37:08 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o3LJ77Hw2621538 for ; Thu, 22 Apr 2010 00:37:08 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o3LJ77kt018367 for ; Thu, 22 Apr 2010 05:07:07 +1000 Received: from balbir-laptop.localdomain ([9.77.199.212]) by d28av04.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o3LJ76p1018352; Thu, 22 Apr 2010 05:07:07 +1000 Received: by balbir-laptop.localdomain (Postfix, from userid 500) id 790EED0AF5; Thu, 22 Apr 2010 00:37:04 +0530 (IST) Date: Thu, 22 Apr 2010 00:37:04 +0530 From: Balbir Singh To: kvm Cc: Rusty Russell , Avi Kivity , "linux-mm@kvack.org" Subject: [PATCH][RESEND]Fix GFP flags passed from the virtio balloon driver Message-ID: <20100421190704.GK3994@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 21 Apr 2010 19:07:17 +0000 (UTC) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index 369f2ee..f8ffe8c 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c @@ -102,7 +102,8 @@ static void fill_balloon(struct virtio_balloon *vb, size_t num) num = min(num, ARRAY_SIZE(vb->pfns)); for (vb->num_pfns = 0; vb->num_pfns < num; vb->num_pfns++) { - struct page *page = alloc_page(GFP_HIGHUSER | __GFP_NORETRY); + struct page *page = alloc_page(GFP_HIGHUSER | __GFP_NORETRY | + __GFP_NOMEMALLOC | __GFP_NOWARN); if (!page) { if (printk_ratelimit()) dev_printk(KERN_INFO, &vb->vdev->dev,