From owner-freebsd-stable@FreeBSD.ORG Thu May 21 10:18:08 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89D63106564A for ; Thu, 21 May 2009 10:18:08 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-bw0-f165.google.com (mail-bw0-f165.google.com [209.85.218.165]) by mx1.freebsd.org (Postfix) with ESMTP id 0B7428FC0C for ; Thu, 21 May 2009 10:18:07 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by bwz9 with SMTP id 9so943676bwz.43 for ; Thu, 21 May 2009 03:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=o7QVp4ThyFCwPNaXH2FO4+nsViL8Y0NfIhHk9SCNPsA=; b=HLEmVFkGPu9GDKTpGQel5jeC8cjFaWNkOcrCKx0konu86Z3mDMhpw4pKnR2K5KVizT 4CmTIIuPvzDAqbZ8exj60DpOHx0zqeA3iKYsAQukRrOPYyM92bCcJ+xgEj+MbczyK48r e0k+Z9CwOvJ8lMRxnGs6WrUWl4gwX/Tqzydek= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=kUfJ6NSWcibpU+vshr7WsdbdNEDAG1aiTFt/DsDcqLVoLg+61dubL9wjYSVpHI8VN/ O1qAhSNueOAf1ibMKim6Aj15p2d9AZifw/8SGRZL+l0+CX2GSduCepcFc+RWL0si1OmH 5WkGryJi7VspvwM9RLBZc3SVkfrvU9XnQBhFo= MIME-Version: 1.0 Sender: asmrookie@gmail.com Received: by 10.223.111.211 with SMTP id t19mr1485910fap.64.1242899274435; Thu, 21 May 2009 02:47:54 -0700 (PDT) In-Reply-To: <20090521072922.GR21112@tiger.fi.esaote.it> References: <20090507155012.GW21112@tiger.fi.esaote.it> <200905121144.21406.jhb@freebsd.org> <20090512161025.GO21112@tiger.fi.esaote.it> <200905201021.23633.jhb@freebsd.org> <20090521072922.GR21112@tiger.fi.esaote.it> Date: Thu, 21 May 2009 11:47:54 +0200 X-Google-Sender-Auth: ec1aee8cd6d63af5 Message-ID: <3bbf2fe10905210247n183812dbu5addb4f8b2214a76@mail.gmail.com> From: Attilio Rao To: Riccardo Torrini Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, siedar@nplay.pl, scottl@freebsd.org, John Baldwin Subject: Re: kern/130330: [mpt] [panic] Panic and reboot machine MPT ... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2009 10:18:08 -0000 2009/5/21 Riccardo Torrini : > On Wed, May 20, 2009 at 10:21:23AM -0400, John Baldwin wrote: > >> Try this. It reverts the single-CCB part of the previous >> commit while keeping the other fixes. I missed that the >> CCB might still be in flight when we schedule another rescan. > > Applied to mpt_raid.c,v 1.15.2.1 2008/07/28 17:05:09 jhb (it > differ only for line position but adiacent lines are the same). > Also redone a diff -u4 to verify, recompiled, installed, and... > > YOO-HOO. Now it rebuild _without_ crashing. > > May 20 17:39:08 horse kernel: \ > mpt0:vol0(mpt0:0:0): RAID-1 - Degraded > mpt0:vol0(mpt0:0:0): Status ( Enabled Re-Syncing ) > mpt0:vol0(mpt0:0:0): Low Priority Re-Sync > mpt0:vol0(mpt0:0:0): 64461754 of 71087625 blocks remaining > > Let me test against a 7.2-STABLE (and even to some -CURRENT)... > > [some times ahead] > > Bad news: I removed the second disk during rebuilding and it > still crash. I take a screen shapshot with camera because of > too many messages for write down by hand :) > > Image, src tarball and info here (about 2.2MB): > ftp://ftp.torrini.org/pub/FreeBSD/mpt_crash_on_rebuild/ Please try the patch here: http://www.freebsd.org/~attilio/notify.diff I think it is perfectly fine this approach because the devctl_notify() also will "silently" fail if no memory is available. Note that this is a CAM "bug" more that the driver arises. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein