From owner-cvs-src@FreeBSD.ORG Fri Nov 5 09:05:16 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88C6716A4CE; Fri, 5 Nov 2004 09:05:16 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D87143D49; Fri, 5 Nov 2004 09:05:16 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id iA595GSO083809; Fri, 5 Nov 2004 09:05:16 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id iA595Gct083808; Fri, 5 Nov 2004 09:05:16 GMT (envelope-from pjd) Message-Id: <200411050905.iA595Gct083808@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Fri, 5 Nov 2004 09:05:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom/mirror g_mirror.c g_mirror.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 09:05:16 -0000 pjd 2004-11-05 09:05:15 UTC FreeBSD src repository Modified files: sys/geom/mirror g_mirror.c g_mirror.h Log: MFp4: - Fix for good (I hope) force-stopping mirrors and some filure cases (e.g. the last good component dies when synchronization is in progress). Don't use ->nstart/->nend consumer's fields, as this could be racy, because those fields are used in g_down/g_up, use ->index consumer's field instead for tracking number of not finished requests. Reported by: marcel - After 5 seconds of idle time (this should be configurable) mark all dirty providers as clean, so when mirror is not used in 5 seconds and there will be power failure, no synchronization on boot is needed. Idea from: sorry, I can't find who suggested this - When there are no ACTIVE components and no NEW components destroy whole mirror, not only provider. - Fix one debug to show information about I/O request, before we change its command. Revision Changes Path 1.39 +68 -13 src/sys/geom/mirror/g_mirror.c 1.11 +1 -0 src/sys/geom/mirror/g_mirror.h