From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 03:30:00 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9A4516A418 for ; Sun, 27 Jan 2008 03:30:00 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail35.syd.optusnet.com.au (mail35.syd.optusnet.com.au [211.29.133.51]) by mx1.freebsd.org (Postfix) with ESMTP id 4E29213C478 for ; Sun, 27 Jan 2008 03:30:00 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail35.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m0R3Tunq017084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 27 Jan 2008 14:29:58 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m0R3TuD5046167; Sun, 27 Jan 2008 14:29:56 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m0R3TuvM046166; Sun, 27 Jan 2008 14:29:56 +1100 (EST) (envelope-from peter) Date: Sun, 27 Jan 2008 14:29:55 +1100 From: Peter Jeremy To: Henrik Gulbrandsen Message-ID: <20080127032955.GI53741@server.vk2pj.dyndns.org> References: <200801260034.m0Q0YVVD012819@freefall.freebsd.org> <1201348494.2277.96.camel@Particle> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="e5GLnnZ8mDMEwH4V" Content-Disposition: inline In-Reply-To: <1201348494.2277.96.camel@Particle> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: oliver@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/84336: [usb] [reboot] instant system reboot when unmounting a powered off/unplugged+replugged USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2008 03:30:00 -0000 --e5GLnnZ8mDMEwH4V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 26, 2008 at 12:54:54PM +0100, Henrik Gulbrandsen wrote: >At this point, only the file systems need to be updated. The cleanest >way to handle things may be to have GEOM automatically unmount them at >orphaning. Until that's done, however, unmounting from user space via >devd seems to be a reasonable approach. This approach doesn't work because GEOM doesn't know the drive has gone away until it's no longer present. At that point it's too late to write unflushed buffers. And a devfs-triggered forced unmount does not address the issue of in-flight I/O's between when the media goes away and the filesystem is unmounted. This problem is one of a number of problems within FreeBSD where there is a disconnect between the people who want the problem solved and those with the skills to actually solve the problem. This is a side-effect of FreeBSD being a volunteer project and it's not clear how to fix this. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --e5GLnnZ8mDMEwH4V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHm/qz/opHv/APuIcRAiUZAKCCAFIMSd3EKltZEmdQzfEMCy8YegCdF0z+ ATtT3VzJtkEDXT8TgxgINjY= =1onn -----END PGP SIGNATURE----- --e5GLnnZ8mDMEwH4V--