From patchwork Mon Apr 19 13:35:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balbir Singh X-Patchwork-Id: 93496 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 o3JDaWhN004878 for ; Mon, 19 Apr 2010 13:36:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751398Ab0DSNga (ORCPT ); Mon, 19 Apr 2010 09:36:30 -0400 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:38596 "EHLO e28smtp07.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751282Ab0DSNg3 (ORCPT ); Mon, 19 Apr 2010 09:36:29 -0400 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp07.in.ibm.com (8.14.3/8.13.1) with ESMTP id o3JDaRDl016039 for ; Mon, 19 Apr 2010 19:06:27 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o3JDaRXC2252956 for ; Mon, 19 Apr 2010 19:06:27 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o3JDaQdr014370 for ; Mon, 19 Apr 2010 23:36:27 +1000 Received: from balbir-laptop.localdomain ([9.124.218.114]) by d28av05.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o3JDaQTJ014367; Mon, 19 Apr 2010 23:36:26 +1000 Received: by balbir-laptop.localdomain (Postfix, from userid 500) id 1DBB0D0992; Mon, 19 Apr 2010 19:06:25 +0530 (IST) From: Balbir Singh To: kvm Cc: Balbir Singh , Rusty Russell Subject: [PATCH] Fix GFP flags passed from the virtio balloon driver Date: Mon, 19 Apr 2010 19:05:39 +0530 Message-Id: <1271684139-8766-1-git-send-email-balbir@linux.vnet.ibm.com> X-Mailer: git-send-email 1.6.6.1 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]); Mon, 19 Apr 2010 13:36:32 +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,