Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030205AbXAaPYi (ORCPT ); Wed, 31 Jan 2007 10:24:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030212AbXAaPYi (ORCPT ); Wed, 31 Jan 2007 10:24:38 -0500 Received: from accolon.hansenpartnership.com ([64.109.89.108]:48782 "EHLO accolon.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030188AbXAaPYg (ORCPT ); Wed, 31 Jan 2007 10:24:36 -0500 Subject: Re: [PATCH] scsi_lib.c: continue after MEDIUM_ERROR From: James Bottomley To: Mark Lord Cc: Ric Wheeler , "Eric D. Mudama" , linux-kernel@vger.kernel.org, IDE/ATA development list , linux-scsi , dougg@torque.net In-Reply-To: <45C0B211.2030305@rtr.ca> References: <200701301947.08478.liml@rtr.ca> <1170206199.10890.13.camel@mulgrave.il.steeleye.com> <311601c90701301725n53d25a74g652b7ca3bfc64c56@mail.gmail.com> <45BFF3D6.9050605@rtr.ca> <45C00AEE.1090708@emc.com> <1170217288.10890.37.camel@mulgrave.il.steeleye.com> <45C0B211.2030305@rtr.ca> Content-Type: text/plain Date: Wed, 31 Jan 2007 09:24:30 -0600 Message-Id: <1170257071.3402.6.camel@mulgrave.il.steeleye.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 (2.8.2.1-3.fc6) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1571 Lines: 45 On Wed, 2007-01-31 at 10:13 -0500, Mark Lord wrote: > James Bottomley wrote: > > > > For the MD case, this is what REQ_FAILFAST is for. > I cannot find where SCSI honours that flag. James? Er, it's in scsi_error.c:scsi_decide_disposition(): maybe_retry: /* we requeue for retry because the error was retryable, and * the request was not marked fast fail. Note that above, * even if the request is marked fast fail, we still requeue * for queue congestion conditions (QUEUE_FULL or BUSY) */ if ((++scmd->retries) <= scmd->allowed && !blk_noretry_request(scmd->request)) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return NEEDS_RETRY; } else { /* * no more retries - report this one back to upper level. */ return SUCCESS; } > And for that matter, even when I patch SCSI so that it *does* honour it, > I don't actually see the flag making it into the SCSI layer from above. > > And I don't see where/how the block layer takes care when considering > merge FAILFAST/READA requests with non FAILFAST/READA requests. > To me, it looks perfectly happy to add non-FAILFAST/READA bios > to a FAILFAST request, risking data loss if a lower-layer decides > to honour the FAILFAST/READA flags. > > So it's a pretty Good Thing(tm) that SCSI doesn't currently honour it. ;) James - 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/