From owner-freebsd-stable@FreeBSD.ORG Thu Jul 19 10:20:00 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D4B3D16A404 for ; Thu, 19 Jul 2007 10:20:00 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [203.16.214.135]) by mx1.freebsd.org (Postfix) with ESMTP id 3069713C481 for ; Thu, 19 Jul 2007 10:19:59 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) X-IronPort-AV: E=Sophos;i="4.16,555,1175437800"; d="scan'208";a="118333968" Received: from ppp121-45-85-51.lns10.adl6.internode.on.net (HELO midget.dons.net.au) ([121.45.85.51]) by ipmail03.adl2.internode.on.net with ESMTP; 19 Jul 2007 19:34:19 +0930 Received: from [127.0.0.1] (scutter.dons.net.au [10.0.2.83]) (authenticated bits=0) by midget.dons.net.au (8.13.4/8.13.8) with ESMTP id l6JA3qAu020739; Thu, 19 Jul 2007 19:34:03 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: <469F3708.80702@gsoft.com.au> Date: Thu, 19 Jul 2007 19:33:52 +0930 From: "Daniel O'Connor" User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Andriy Gapon References: <1184786589.00776227.1184773801@10.7.7.3> <1184790181.00776246.1184776801@10.7.7.3> <1184790188.00776259.1184778602@10.7.7.3> <1184793785.00776271.1184780402@10.7.7.3> <469F2B74.8000003@icyb.net.ua> In-Reply-To: <469F2B74.8000003@icyb.net.ua> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.457 () BAYES_00,SPF_FAIL X-Scanned-By: MIMEDefang 2.57 on 10.0.2.7 Cc: josh@tcbug.org, Mark Linimon , freebsd-stable@freebsd.org, Momchil Ivanov , LoN_Kamikaze@gmx.de Subject: Re: removing external usb hdd without unmounting causes reboot? 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, 19 Jul 2007 10:20:00 -0000 Andriy Gapon wrote: > on 18/07/2007 20:34 Mark Linimon said the following: >> On Wed, Jul 18, 2007 at 10:05:59AM -0700, Jeremy Chadwick wrote: >>> Bottom line here is that the kernel panics when removing a USB device >>> that has filesystems mounted. >> s/USB // >> >>> I also have a hard time believing that the reason it hasn't been fixed >>> is because "there isn't an easy fix". I'm under the impression it >>> hasn't been fixed because either no one cares enough to fix it (using >>> the workaround as a scapegoat excuse), or because the majority of people >>> do not use USB-based storage devices. >> The reason is not the USB stack; the reason (IIRC) is that the FreeBSD >> VM was written with the default assumption that Devices Never Go Away. >> A large rewrite, I'm told, will be needed to fix this, and the code is >> convoluted and tricky. >> >> No one finds the situation acceptable; introducing the "scapegoat" word >> isn't going to win you any support. The problem is not a weekend's worth >> of work to fix, nor does it have anything to do with avoidance by one >> particular maintainer, which you apparently had encountered before. > > Well, here's my two kopiykas. > Apparently there is somebody who tried to fix this problem, but for some > reason (most probably language barrier) his attempt is largely unnoticed > so far. > > Here is a link to a posting to freebsd-fs: > http://lists.freebsd.org/pipermail/freebsd-fs/2007-June/003370.html The language barrier won't help, especially since there is no English discussion about how the patch works. FreeBSD VFS comitters are rare, ones that understand Russian are probably almost non-existent :) Also it would be nice if the patch was a unified diff rather than x-patch as that makes it much easier to review.