From owner-cvs-all@FreeBSD.ORG Tue Dec 21 18:42:52 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F39016A4CE; Tue, 21 Dec 2004 18:42:52 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1817F43D41; Tue, 21 Dec 2004 18:42:52 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBLIgptv070241; Tue, 21 Dec 2004 18:42:51 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBLIgpuE070240; Tue, 21 Dec 2004 18:42:51 GMT (envelope-from pjd) Message-Id: <200412211842.iBLIgpuE070240@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 21 Dec 2004 18:42:51 +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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 18:42:52 -0000 pjd 2004-12-21 18:42:51 UTC FreeBSD src repository Modified files: sys/geom/mirror g_mirror.c Log: This should not be permitted, but some GEOM classes held the topology lock while doing g_(read|write)_data() (e.g. BSD). This can cause a deadlock in MIRROR class. Not sure if this is safe to drop the topology lock in BSD class, so change the code in MIRROR class to avoid this deadlock. Revision Changes Path 1.51 +30 -6 src/sys/geom/mirror/g_mirror.c