Date: Sun, 27 Jan 2008 14:29:55 +1100 From: Peter Jeremy <peterjeremy@optushome.com.au> To: Henrik Gulbrandsen <henrik@gulbra.net> 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 Message-ID: <20080127032955.GI53741@server.vk2pj.dyndns.org> In-Reply-To: <1201348494.2277.96.camel@Particle> References: <200801260034.m0Q0YVVD012819@freefall.freebsd.org> <1201348494.2277.96.camel@Particle>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080127032955.GI53741>