Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753742AbbGTKq6 (ORCPT ); Mon, 20 Jul 2015 06:46:58 -0400 Received: from cantor2.suse.de ([195.135.220.15]:41616 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752702AbbGTKq5 (ORCPT ); Mon, 20 Jul 2015 06:46:57 -0400 Subject: Re: [Xen-devel] [PATCH] xen: release lock occasionally during ballooning To: David Vrabel , linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com References: <1436539354-27850-1-git-send-email-jgross@suse.com> <55ACCA5E.9070100@citrix.com> From: Juergen Gross Message-ID: <55ACD19F.3050106@suse.com> Date: Mon, 20 Jul 2015 12:46:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55ACCA5E.9070100@citrix.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1164 Lines: 28 On 07/20/2015 12:15 PM, David Vrabel wrote: > 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? Hmm, yes. I've been following the comment above balloon_process() which suggested the possibility of multiple active instances. I'll send another version of the patch with an updated comment and removed state variable. Juergen -- 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/