Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPJny-00044t-Vs for qemu-devel@nongnu.org; Tue, 20 Jan 2009 11:50:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPJnw-00044B-UZ for qemu-devel@nongnu.org; Tue, 20 Jan 2009 11:50:22 -0500 Received: from [199.232.76.173] (port=54814 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPJnw-000445-OW for qemu-devel@nongnu.org; Tue, 20 Jan 2009 11:50:20 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:63824) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPJnw-0008NM-9E for qemu-devel@nongnu.org; Tue, 20 Jan 2009 11:50:20 -0500 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id n0KGoFlZ015401 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 20 Jan 2009 08:50:17 -0800 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1LPJnq-0004MO-M6 for qemu-devel@nongnu.org; Tue, 20 Jan 2009 16:50:14 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18806.198.448290.48055@mariner.uk.xensource.com> Date: Tue, 20 Jan 2009 16:50:14 +0000 Subject: Re: [Qemu-devel] [PATCH v4] Stop VM on ENOSPC error. In-Reply-To: <20090120153159.GA8319@redhat.com> References: <20090120105610.GB27675@redhat.com> <18805.55601.339210.692083@mariner.uk.xensource.com> <20090120141651.GF27675@redhat.com> <18805.58968.356765.658443@mariner.uk.xensource.com> <20090120153159.GA8319@redhat.com> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Gleb Natapov writes ("Re: [Qemu-devel] [PATCH v4] Stop VM on ENOSPC error."): > I would like to abolish the blocking calls from all file formats, but in > reality it is almost impossible. Qcow2 metadata updates is a big mess to > do asynchronously. The best thing we can do is to move it to another thread. Err, I wasn't suggesting it should be done in each format in that way. It could be done once in block.c, before the specific format write method is called. So the formats would still write synchronously, and would pass errors up to their parent formats, until it reenters the generic block code where the retry would take place. At that point the call from the device emulation would necessariy be asynchronous. Ian.