Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932329Ab0FDDJu (ORCPT ); Thu, 3 Jun 2010 23:09:50 -0400 Received: from cantor.suse.de ([195.135.220.2]:38152 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932161Ab0FDDJs (ORCPT ); Thu, 3 Jun 2010 23:09:48 -0400 Date: Fri, 4 Jun 2010 13:09:43 +1000 From: Nick Piggin To: "Martin K. Petersen" Cc: Chris Mason , James Bottomley , Matthew Wilcox , Christof Schmitt , Boaz Harrosh , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: Wrong DIF guard tag on ext2 write Message-ID: <20100604030943.GA26335@laptop> References: <1275411293.21962.387.camel@mulgrave.site> <20100601180905.GR8980@think> <20100601184649.GE9453@laptop> <20100601193528.GV8980@think> <20100602032030.GF9453@laptop> <20100602134121.GD6152@laptop> <20100603154634.GC8980@think> <20100603162718.GR6822@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1344 Lines: 35 On Thu, Jun 03, 2010 at 09:46:02PM -0400, Martin K. Petersen wrote: > >>>>> "Nick" == Nick Piggin writes: > > Nick> Also I don't think we can deal with memory errors and scribbles > Nick> just by crcing dirty data. The calculations generating the data > Nick> could get corrupted. > > Yep, the goal is to make the window as small as possible. > > > Nick> Data can be corrupted on its way back from the device to > Nick> userspace. > > We also get a CRC back from the storage. So the (integrity-aware) > application is also able to check on read. Well that's nice :) > Nick> Obviously this feature is being pushed by databases and such that > Nick> really want to pass checksums all the way from userspace. Block > Nick> retrying is _not_ needed or wanted here of course. > > Nope. The integrity error is bubbled all the way up to the database and > we can decide to retry, recreate or error out depending on what we find > when we do validation checks on the data buffer and the integrity > metadata. By block retrying, I just meant the bounce / re-checksum approach. -- 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/