From owner-freebsd-current@FreeBSD.ORG Mon Feb 6 23:42:20 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD95916A420 for ; Mon, 6 Feb 2006 23:42:20 +0000 (GMT) (envelope-from garry@NetworkPhysics.COM) Received: from NetworkPhysics.COM (fw.networkphysics.com [205.158.104.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8158C43D48 for ; Mon, 6 Feb 2006 23:42:20 +0000 (GMT) (envelope-from garry@NetworkPhysics.COM) Received: from networkphysics.com (stratus.fractal.networkphysics.com [10.10.1.104]) by NetworkPhysics.COM (8.12.10/8.12.10) with ESMTP id k16NgKPY024214 for ; Mon, 6 Feb 2006 15:42:20 -0800 (PST) (envelope-from garry@networkphysics.com) Message-ID: <43E7E011.6000301@networkphysics.com> Date: Mon, 06 Feb 2006 15:47:29 -0800 From: Garry Belka User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.4.2) Gecko/20040301 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 07 Feb 2006 00:48:42 +0000 Subject: [ATA] [patch] crashes, deadlock, memory leaks, . plus LSI RAID write support X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2006 23:42:20 -0000 I had to fix some ATA bugs to increase its robustness. See a problem report and a patch at http://www.freebsd.org/cgi/query-pr.cgi?pr=92786 The patch enables a support for disk failures and enables hot-swapping SATA disks without a frequent system crash. It deals with a deadlock in an ata-raid design that causes systems to hang often on reboot, after RAID rebuild or in other situations. The patch implements additional locking to access RAID labels. The patch implements partial reference counters for ATA requests to avoid memory leaks or twice-freed requests and crashes. The patch includes support for writing RAID labels on LSIv3. This is the builtin SATA RAID on the current Intel Server Board (SE7520JR2). More details are given in the problem report linked above. In particular, the patch proposes an easy scheme for ATA RAID label construction that if accepted will enabe to add GEOM layer based on ATA RAID native labels at a later time, and reuse label reading and filling up functions. This is not possible at present. The patch was stable in our test, and I'd be glad to find out how well it works for you. Best, Garry