From owner-svn-src-all@FreeBSD.ORG Sun Nov 13 00:10:49 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6A93106566C; Sun, 13 Nov 2011 00:10:49 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0B5AF8FC08; Sun, 13 Nov 2011 00:10:48 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so6358278bkb.13 for ; Sat, 12 Nov 2011 16:10:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=AP8CEcH7ZDAE0LTne8jXxHfHa7a1uGBTQxdChPbPZiE=; b=QItZ2jzpCL7rPHAakHfxKyq9mwztkYPgpgSDMVhxeKIeA+MLb/5QKyWRPutQaZvPQZ Bl/LK7pAMtuuqqYRlPgATUIO17pTEbYTn294Clnois10e3T+C2TmLtiRZ8MY04eEgeeo XqtH80aoRw9Aeu4mzG4MNuJOemb+JU9q/XfVQ= Received: by 10.204.143.148 with SMTP id v20mr5742342bku.104.1321143047769; Sat, 12 Nov 2011 16:10:47 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id m12sm11444429bkg.14.2011.11.12.16.10.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 Nov 2011 16:10:46 -0800 (PST) Sender: Alexander Motin Message-ID: <4EBF0B04.40604@FreeBSD.org> Date: Sun, 13 Nov 2011 02:10:44 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111003 Thunderbird/7.0.1 MIME-Version: 1.0 To: Marius Strobl References: <201111012312.pA1NCNuY089112@svn.freebsd.org> <20111112210900.GJ56603@alchemy.franken.de> In-Reply-To: <20111112210900.GJ56603@alchemy.franken.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r227009 - head/sys/geom X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2011 00:10:50 -0000 On 11/12/11 23:09, Marius Strobl wrote: > On Tue, Nov 01, 2011 at 11:12:23PM +0000, Alexander Motin wrote: >> Author: mav >> Date: Tue Nov 1 23:12:22 2011 >> New Revision: 227009 >> URL: http://svn.freebsd.org/changeset/base/227009 >> >> Log: >> Make orphan() method in geom_dev asynchronous using destroy_dev_sched_cb() >> instead of destroy_dev(). It moves device destruction waiting out of the >> topology lock and so fixes dead lock between orphanization and closing. >> Real provider and geom destruction called from swi context after device >> destroyed as callback of the destroy_dev_sched_cb(). >> > > This change causes fsck_ffs(8) and mount(8) to hang unkillably on > sparc64 when the kernel is built with either GEOM_PART_GPT or > GEOM_LABEL. When breaking into the kernel the backtrace so far > looked like one of these two ways: > g_wither_washer() at g_wither_washer+0x18 > g_run_events() at g_run_events+0x4dc > g_event_procbody() at g_event_procbody+0x8c > fork_exit() at fork_exit+0x9c > fork_trampoline() at fork_trampoline+0x8 > > find_instance() at find_instance+0x80 > _sx_xlock() at _sx_xlock+0xf0 > g_run_events() at g_run_events+0xb0 > g_event_procbody() at g_event_procbody+0x8c > fork_exit() at fork_exit+0x9c > fork_trampoline() at fork_trampoline+0x8 > > I've no clue about geom(4) so I also have no idea how to debug this. I think `show alllocks` in debugger and backtraces of related threads could be useful. -- Alexander Motin