Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753035Ab2JBTCa (ORCPT ); Tue, 2 Oct 2012 15:02:30 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:53638 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897Ab2JBTC2 (ORCPT ); Tue, 2 Oct 2012 15:02:28 -0400 Message-ID: <506B3A39.9010408@vlnb.net> Date: Tue, 02 Oct 2012 15:02:17 -0400 From: Vladislav Bolkhovitin User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.28) Gecko/20120313 Mnenhy/0.8.5 Thunderbird/3.1.20 MIME-Version: 1.0 To: Christoph Hellwig CC: "Nicholas A. Bellinger" , target-devel , linux-scsi , linux-kernel , Mike Christie , Hannes Reinecke , Roland Dreier , Andy Grover , Christoph Hellwig , stable@vger.kernel.org Subject: Re: [PATCH 1/6] target/file: Re-enable optional fd_buffered_io=1 operation References: <1348984696-30992-1-git-send-email-nab@linux-iscsi.org> <1348984696-30992-2-git-send-email-nab@linux-iscsi.org> <20121001084605.GA23497@infradead.org> In-Reply-To: <20121001084605.GA23497@infradead.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:kNum3rHbN4pdZtfYRi7PCTHVswwI2+OjGS/z4bF2f7a f2PPjUMiw2LATt9CDU8cR62cuhocKEXllkTc9xiJQpT6MgUbhP ei67aq2eJwApGp4MGW6bOkX5jOFrTwOCoJJubWjxS71Ufbb5Hh K1CKOXWz+AvtgEiSIJiqVvtOwutY6f/l3L+dNAUanwaG1oKS4M JOkCwP9J9kOnDMlx6/BE/V5IDvN1gScsQvQLq5mzJjvD6a/3lD WPWM/BdiBoMFU5k7gdeSZL2U7GMo/iNHzejrKEmkh8RXIWMNpB Cbu0GW4Rg7QwqsifcA2G8kPfnTz3EjPpgVqhPckux6JE9jcDwK OgDBSdmeWCpjWxFFYzLs= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1318 Lines: 29 Christoph Hellwig, on 10/01/2012 04:46 AM wrote: > On Sun, Sep 30, 2012 at 05:58:11AM +0000, Nicholas A. Bellinger wrote: >> From: Nicholas Bellinger >> >> This patch re-adds the ability to optionally run in buffered FILEIO mode >> (eg: w/o O_DSYNC) for device backends in order to once again use the >> Linux buffered cache as a write-back storage mechanism. >> >> This difference with this patch is that fd_create_virtdevice() now >> forces the explicit setting of emulate_write_cache=1 when buffered FILEIO >> operation has been enabled. > > What this lacks is a clear reason why you would enable this inherently > unsafe mode. While there is some clear precedence to allow people doing > stupid thing I'd least like a rationale for it, and it being documented > as unsafe. Nowadays nearly all serious applications are transactional, and know how to flush storage cache between transactions. That means that write back caching is absolutely safe for them. No data can't be lost in any circumstances. Welcome to the 21 century, Christoph! Vlad -- 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/