Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754058AbbGTKQb (ORCPT ); Mon, 20 Jul 2015 06:16:31 -0400 Received: from smtp.citrix.com ([66.165.176.89]:18560 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752385AbbGTKQa (ORCPT ); Mon, 20 Jul 2015 06:16:30 -0400 X-IronPort-AV: E=Sophos;i="5.15,507,1432598400"; d="scan'208";a="282492825" Message-ID: <55ACCA5E.9070100@citrix.com> Date: Mon, 20 Jul 2015 11:15:58 +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] xen: release lock occasionally during ballooning References: <1436539354-27850-1-git-send-email-jgross@suse.com> In-Reply-To: <1436539354-27850-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: 881 Lines: 19 On 10/07/15 15:42, 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. Add a state variable to indicate one balloon_process() > is active to avoid multiple balloon processes fighting for the mutex. Is this state variable necessary? balloon_process() is a work item so there should only be one instance of it running anyway, yes? 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/