From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: end to end error recovery musings Date: Fri, 23 Feb 2007 16:03:21 -0800 Message-ID: <45DF80C9.5080606@zytor.com> References: <45DEF6EF.3020509@emc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45DEF6EF.3020509@emc.com> Sender: linux-scsi-owner@vger.kernel.org To: Ric Wheeler Cc: Linux-ide , linux-scsi , linux-raid@vger.kernel.org, Tejun Heo , James Bottomley , Mark Lord , Neil Brown , Jens Axboe , "Clark, Nathan" , "Singh, Arvinder" , "De Smet, Jochen" , "Farmer, Matt" , linux-fsdevel@vger.kernel.org, "Mizar, Sunita" List-Id: linux-raid.ids Ric Wheeler wrote: > > We still have the following challenges: > > (1) read-ahead often means that we will retry every bad sector at > least twice from the file system level. The first time, the fs read > ahead request triggers a speculative read that includes the bad sector > (triggering the error handling mechanisms) right before the real > application triggers a read does the same thing. Not sure what the > answer is here since read-ahead is obviously a huge win in the normal case. > Probably the only sane thing to do is to remember the bad sectors and avoid attempting reading them; that would mean marking "automatic" versus "explicitly requested" requests to determine whether or not to filter them against a list of discovered bad blocks. -hpa