Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755733AbbGTNMZ (ORCPT ); Mon, 20 Jul 2015 09:12:25 -0400 Received: from smtp.citrix.com ([66.165.176.89]:25860 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754124AbbGTNMY (ORCPT ); Mon, 20 Jul 2015 09:12:24 -0400 X-IronPort-AV: E=Sophos;i="5.15,508,1432598400"; d="scan'208";a="282536919" Message-ID: <55ACF39F.9030000@citrix.com> Date: Mon, 20 Jul 2015 14:11:59 +0100 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Juergen Gross , , , , , Subject: Re: [Xen-devel] [Patch V2] xen: release lock occasionally during ballooning References: <1437392979-6591-1-git-send-email-jgross@suse.com> In-Reply-To: <1437392979-6591-1-git-send-email-jgross@suse.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 810 Lines: 20 On 20/07/15 12:49, Juergen Gross wrote: > When dom0 is being ballooned balloon_process() will hold the balloon > mutex until it is finished. This will block e.g. creation of new > domains as the device backends for the new domain need some > autoballooned pages for the ring buffers. > > Avoid this by releasing the balloon mutex from time to time during > ballooning. Adjust the comment above balloon_process() regarding > multiple instances of balloon_process(). > > Instead of open coding it, just use cond_resched(). Applied to for-linus-4.2, thanks. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/