From owner-freebsd-scsi@FreeBSD.ORG Sat Jul 26 13:00:15 2003 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12EF537B401; Sat, 26 Jul 2003 13:00:15 -0700 (PDT) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45D1943F75; Sat, 26 Jul 2003 13:00:14 -0700 (PDT) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id <305LG5F7>; Sat, 26 Jul 2003 16:00:13 -0400 Message-ID: From: Don Bowman To: Don Bowman , "'freebsd-scsi@freebsd.org'" , "'aic7xxx@freebsd.org'" Date: Sat, 26 Jul 2003 16:00:05 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: RE: AIC7902 w/ seagate U320 drive issue on releng-4 (and current) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2003 20:00:15 -0000 > From: Don Bowman ... [scsi errors with seagate cheetah on supermicro with adaptec aic7902] I sometimes then get a panic due to this KASSERT in sys/ufs/ufs/ufs_readwrite.c: /* * We should only get non-zero b_resid when an I/O error * has occurred, which should cause us to break above. * However, if the short read did not cause an error, * then we want to ensure that we do not uiomove bad * or uninitialized data. * * XXX b_resid is only valid when an actual I/O has occured * and may be incorrect if the buffer is B_CACHE or if the * last op on the buffer was a failed write. This KASSERT * is a precursor to removing it from the UFS code. */ KASSERT(bp->b_resid == 0, ("bp->b_resid != 0"));