Received: from eggs.gnu.org ([140.186.70.92]:52330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCtKG-0004Jq-AH for qemu-devel@nongnu.org; Thu, 21 Apr 2011 08:49:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCtKF-0004yq-DV for qemu-devel@nongnu.org; Thu, 21 Apr 2011 08:49:40 -0400 Received: from verein.lst.de ([213.95.11.211]:46622 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCtKF-0004yk-6S for qemu-devel@nongnu.org; Thu, 21 Apr 2011 08:49:39 -0400 Date: Thu, 21 Apr 2011 14:49:38 +0200 From: Christoph Hellwig Message-ID: <20110421124938.GB27317@lst.de> References: <1303375391-26679-1-git-send-email-ronniesahlberg@gmail.com> <20110421085026.GA4817@lst.de> <20110421090935.GA5381@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] iSCSI support for QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ronnie sahlberg Cc: Stefan Hajnoczi , Christoph Hellwig , stefanha@linux.vnet.ibm.com, qemu-devel@nongnu.org On Thu, Apr 21, 2011 at 09:36:12PM +1000, ronnie sahlberg wrote: > There are some high-volume arrays that advertise support but fail any > cdb with FUA, FUA_NV bits set with sense, so it needs to be made optional. Which on would that be? Linux uses the FUA bit if the device advertises support via the DPOFUA bit since 2005, and prints a warning if a FUA write fails, and since last year even fails the request hard. I'd be really surprised if a common device fails FUA writes and we didn't know about it by now. Either way you'll have to still guarantee data made it to non-volatile storage for cache=writethrough mode, either by disabling the WCE bit using MODE SELECT, or by flushing the cache after every write.