From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhDVQ-00031B-MA for qemu-devel@nongnu.org; Wed, 02 Apr 2008 20:40:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhDVP-00030g-7H for qemu-devel@nongnu.org; Wed, 02 Apr 2008 20:40:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhDVP-00030Y-33 for qemu-devel@nongnu.org; Wed, 02 Apr 2008 20:40:39 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JhDVO-0007sE-Ei for qemu-devel@nongnu.org; Wed, 02 Apr 2008 20:40:38 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] Asynchronous reliable and configurable cache flush Date: Thu, 3 Apr 2008 01:40:33 +0100 References: <18418.28291.689482.198484@mariner.uk.xensource.com> <200804011846.25975.paul@codesourcery.com> <18419.46090.542427.977863@mariner.uk.xensource.com> In-Reply-To: <18419.46090.542427.977863@mariner.uk.xensource.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200804030140.33589.paul@codesourcery.com> 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 Cc: Ian Jackson > > > + =A0 =A0if (ret) { > > > + =A0 =A0 =A0 =A0BADF("scsi-disc: IO error on flush: %s\n", strerror(= =2Dret)); > > > > This is wrong for two reasons: BADF already adds a suitable prefix, > > and is for reporting qemu bugs (i.e. missing features or things that > > should never happen). This is just a normal IO error, which we > > correctly report to the guest. > > I don't think flush failures are a normal IO error. They can only > occur when the corresponding host block device is having serious > trouble. Normally (if it's actually a host disk) this is very bad. In practice any IO error indicates that the target device is pretty screwed. I don't see why flushes should be special. When caches are enabled I'd be=20 fairly surprised if normal write operations ever returned an error. Paul